Disabled Sleep for script
This commit is contained in:
parent
b0745ad21e
commit
1d39a9b00b
@ -1,5 +1,8 @@
|
|||||||
@echo off
|
@echo off
|
||||||
|
|
||||||
|
:: Set PowerOptions so the PC will not go to sleep during the script
|
||||||
|
Powercfg /x -standby-timeout-ac 0
|
||||||
|
|
||||||
:: Install Office 2016
|
:: Install Office 2016
|
||||||
echo Installing Office 2016...
|
echo Installing Office 2016...
|
||||||
C:\Scripts\Software\Office2016\setup.exe /adminfile C:\Scripts\Software\Office2016\TCSE.MSP
|
C:\Scripts\Software\Office2016\setup.exe /adminfile C:\Scripts\Software\Office2016\TCSE.MSP
|
||||||
@ -81,6 +84,9 @@ echo Successfully Copied Login Scripts...
|
|||||||
:: Perform Windows Updates
|
:: Perform Windows Updates
|
||||||
powershell -ExecutionPolicy Bypass -File "C:\Scripts\Patches\Windows\Initial-Windows-Updates.ps1"
|
powershell -ExecutionPolicy Bypass -File "C:\Scripts\Patches\Windows\Initial-Windows-Updates.ps1"
|
||||||
|
|
||||||
|
:: Set PowerOptions so the PC will sleep after 60 minutes
|
||||||
|
Powercfg /x -standby-timeout-ac 60
|
||||||
|
|
||||||
:: Restart System
|
:: Restart System
|
||||||
echo Restarting system in 2.5 minutes...
|
echo Restarting system in 2.5 minutes...
|
||||||
timeout /t 150
|
timeout /t 150
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user