We have a remote computer which users can log onto using Remote Desktop, at the end of the day they are supposed to log off and put the box into standby (saving the planet and all that) which surprise they nearly always forget. As there are a number of process that need dealing with I can;’t just use Windows Schedule so have a small script to take care of things. All is good except getting it into Standby, I have tried
WinWaitActive("Run", "", 10)
Send("%windir%\System32\rundll32.exe powrprof.dll,SetSuspendState Standby{Enter}")
nothing, I assume because no one is logged on when the script runs there is no GUI so nothing happens, I assume! Any ideas, is there another way of putting it into Standby from a script.
Z