2021-01-10 17:33:48 +00:00
|
|
|
powercfg.exe /h off
|
|
|
|
powercfg /x -hibernate-timeout-ac 0
|
|
|
|
powercfg /x -hibernate-timeout-dc 0
|
|
|
|
powercfg /x -disk-timeout-ac 0
|
|
|
|
powercfg /x -disk-timeout-dc 0
|
|
|
|
powercfg /x -monitor-timeout-ac 0
|
|
|
|
powercfg /x -monitor-timeout-dc 0
|
|
|
|
Powercfg /x -standby-timeout-ac 0
|
|
|
|
powercfg /x -standby-timeout-dc 0
|
|
|
|
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 0 /f
|
|
|
|
netsh advfirewall firewall set rule group="remote desktop" new enable=Yes
|
|
|
|
|
|
|
|
|
2021-01-10 17:44:23 +00:00
|
|
|
REM net localgroup "Remote Desktop Users" "%UserName%" /add
|