From 9e1e5a7aa9afc380824c8ca092c9531f9282dfef Mon Sep 17 00:00:00 2001 From: scarrington Date: Fri, 13 Dec 2024 12:37:16 -0600 Subject: [PATCH] Set so monitor will not go off during script --- TCSE-Computer-Deploy.bat | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/TCSE-Computer-Deploy.bat b/TCSE-Computer-Deploy.bat index 748cd6f..07be561 100644 --- a/TCSE-Computer-Deploy.bat +++ b/TCSE-Computer-Deploy.bat @@ -3,6 +3,9 @@ :: Set PowerOptions so the PC will not go to sleep during the script Powercfg /x -standby-timeout-ac 0 +:: Set PowerOptions so the monitor will not go off +powercfg -change -monitor-timeout-ac 0 + :: Install Office 2016 echo Installing Office 2016... C:\Scripts\Software\Office2016\setup.exe /adminfile C:\Scripts\Software\Office2016\TCSE.MSP @@ -87,6 +90,9 @@ powershell -ExecutionPolicy Bypass -File "C:\Scripts\Patches\Windows\Initial-Win :: Set PowerOptions so the PC will sleep after 60 minutes Powercfg /x -standby-timeout-ac 60 +:: Set PowerOptions so the monitor will go off after 15 minutes +powercfg -change -monitor-timeout-ac 15 + :: Restart System echo Restarting system in 2.5 minutes... timeout /t 150