Windows: Use Powercfg API for Requests
Posted: August 29th, 2020, 12:09 pm
Using the Powercfg API requests to keep a Windows system in Wake mode (no sleep while SABnzbd is loaded) would allow a user to Override the request and allow the system to go to sleep.
A command such as:
powercfg /requestsoverride process sabnzbd.exe system awaymode
in a script could be scheduled to allow a Windows system to go to sleep while sabnzbd.exe is active. The alternative is to kill the process with a command: taskkill /f /im sabnzbd.exe
A command such as:
powercfg /requestsoverride process sabnzbd.exe system awaymode
in a script could be scheduled to allow a Windows system to go to sleep while sabnzbd.exe is active. The alternative is to kill the process with a command: taskkill /f /im sabnzbd.exe