I think the tool that might help you here is powercfg
. You access it from an elevanted CMD window.
If you type powercfg /?
in the cmd window, it will list several usage options. The one I think might be able to help you is: powercfg -requestoverride
I have never used it, but from the description it looks like you can use a service (for example a backup service or security service) to override the sleep state (i.e. it 'wakes' the computer when the service sends a signal to start).
Sets a Power Request override for a particular Process, Service,
or Driver. If no parameters are specified, this command displays
the current list of Power Request Overrides.
Usage: POWERCFG -REQUESTSOVERRIDE <CALLER_TYPE> <NAME> <REQUEST>
<CALLER_TYPE> Specifies one of the following caller type:
PROCESS, SERVICE, DRIVER. This is obtained by
calling the POWERCFG -REQUESTS command.
<NAME> Specifies the caller name. This is the name
returned from calling POWERCFG -REQUESTS command.
<REQUEST> Specifies one or more of the following Power
Request Types: Display, System, Awaymode.
POWERCFG -REQUESTSOVERRIDE PROCESS wmplayer.exe Display System
I'll see if one of the more experienced users can confirm or deny this, or maybe make an alternative suggestion.