Set so monitor will not go off during script
This commit is contained in:
parent
1d39a9b00b
commit
9e1e5a7aa9
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user