30 lines
1.4 KiB
Batchfile
30 lines
1.4 KiB
Batchfile
@echo off
|
|
|
|
REM === DESACTIVAR BLOQUEO DE EQUIPO Y CAMBIO DE USUARIO ===
|
|
|
|
reg add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DisableLockWorkstation /t REG_DWORD /d 1 /f
|
|
reg add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon" /v EnableFirstLogonAnimation /t REG_DWORD /d 0 /f
|
|
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System" /v HideFastUserSwitching /t REG_DWORD /d 1 /f
|
|
reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System" /v HideFastUserSwitching /t REG_DWORD /d 1 /f
|
|
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\OOBE" /v DisablePrivacyExperience /t REG_DWORD /d 1 /f
|
|
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\OOBE" /v HideEULAPage /t REG_DWORD /d 1 /f
|
|
|
|
|
|
REM --- Desactivar hibernación ---
|
|
powercfg -hibernate off
|
|
|
|
REM --- Desactivar suspensión automática (para corriente y batería) ---
|
|
powercfg -change -standby-timeout-ac 0
|
|
powercfg -change -standby-timeout-dc 0
|
|
|
|
REM --- Desactivar apagado de pantalla ---
|
|
powercfg -change -monitor-timeout-ac 0
|
|
powercfg -change -monitor-timeout-dc 0
|
|
|
|
REM --- Desactivar suspensión selectiva USB (opcional) ---
|
|
powercfg -setacvalueindex SCHEME_CURRENT SUB_USB USBSELECTIVE SUSPEND_DISABLE
|
|
powercfg -setdcvalueindex SCHEME_CURRENT SUB_USB USBSELECTIVE SUSPEND_DISABLE
|
|
|
|
REM --- Aplicar cambios al plan activo ---
|
|
powercfg -setactive SCHEME_CURRENT
|