Skip to content

Commit a41dc95

Browse files
committed
do not put screen and pc to sleep
1 parent de6b2a6 commit a41dc95

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

removemsapp.bat

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
@echo off
2-
:: V1.7
2+
:: V1.8
33

44

55
::# elevate with native shell by AveYo
@@ -16,6 +16,11 @@ REG add HKCU\Software\Microsoft\Windows\CurrentVersion\UserProfileEngagement /v
1616
REG add HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced /v "HideFileExt" /t REG_DWORD /d 0 /f 2> nul
1717
:: Enable Get Latest Updates as soon as available
1818
REG add HKLM\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings /v "IsContinuousInnovationOptedIn" /t REG_DWORD /d 1 /f 2> nul
19+
:: do not put screen and pc to sleep
20+
powercfg /change monitor-timeout-ac 0 2> nul
21+
powercfg /change monitor-timeout-dc 0 2> nul
22+
powercfg /change standby-timeout-ac 0 2> nul
23+
powercfg /change standby-timeout-dc 0 2> nul
1924

2025
echo.
2126
echo ======================

0 commit comments

Comments
 (0)