rss logo

Disable or Enable standby in AC mode with a PowerShell script

A PowerShell script to disable or enable standby in AC mode.

Code

########################### # author : shebangthedolphins.net # version : 1.0 # date : 2016.04 # role : Disable or Enable standby # other : # updates : # - 1.X (x/x/xxxx) : If ($args[0] -eq 0) { powercfg.exe -change -standby-timeout-ac 0 } Else { powercfg.exe -change -standby-timeout-ac 15 }

Scheduled Task

We can schedule the standby :

Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

Contact :

contact mail address