Notes

Various, unsorted useful things. Longer snippets will be moved to complete articles.

Sleep/Hibernate Windows from command line

Useful to control a machine via RDP (source.)
  • Shutdown: %windir%\System32\shutdown.exe -s
  • Reboot: %windir%\System32\shutdown.exe -r
  • Logoff: %windir%\System32\shutdown.exe -l
  • Standby: %windir%\System32\rundll32.exe powrprof.dll,SetSuspendState Standby
  • Hibernate: %windir%\System32\rundll32.exe powrprof.dll,SetSuspendState Hibernate