diff --git a/windowsWorkstation.sls b/windowsWorkstation.sls index 2300b68..d04f1dd 100644 --- a/windowsWorkstation.sls +++ b/windowsWorkstation.sls @@ -1,6 +1,13 @@ include: - chocolatey +# don't go to sleep, ideally until the salt run finishes +Set standby timeout to 10 hours: + powercfg.set_timeout: + - name: standby + - value: 600 # ten hours should be plenty + - order: 1 + {% import_yaml "packages.yaml" as packages %} {% for pkg in packages %} {{ pkg }}: @@ -22,3 +29,9 @@ Upgrade All: # 'gpupdate /force': # cmd.run + +Final Housekeeping: + powercfg.set_timeout: # Reset sleep timeout + - name: standby + - value: 30 # default + - order: last