diff options
Diffstat (limited to 'coin/provisioning/common/windows/disable-sleep.ps1')
-rw-r--r-- | coin/provisioning/common/windows/disable-sleep.ps1 | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/coin/provisioning/common/windows/disable-sleep.ps1 b/coin/provisioning/common/windows/disable-sleep.ps1 index dda785ac..a3d194b7 100644 --- a/coin/provisioning/common/windows/disable-sleep.ps1 +++ b/coin/provisioning/common/windows/disable-sleep.ps1 @@ -30,10 +30,11 @@ ## $QT_END_LICENSE$ ## ############################################################################# +. "$PSScriptRoot\helpers.ps1" # This script prevents Windows from going to sleep -powercfg -change -monitor-timeout-ac 0 -powercfg -change -standby-timeout-ac 0 -powercfg -change -disk-timeout-ac 0 -powercfg -change -hibernate-timeout-ac 0 +Run-Executable "powercfg.exe" "-change -monitor-timeout-ac 0" +Run-Executable "powercfg.exe" "-change -standby-timeout-ac 0" +Run-Executable "powercfg.exe" "-change -disk-timeout-ac 0" +Run-Executable "powercfg.exe" "-change -hibernate-timeout-ac 0" |