Run Commands to shutdown, restart, sleep, hibernate, lock,

If you need to set your computer to any state you can use these codes:

Sleep Computer

rundll32.exe powrprof.dll,SetSuspendState 0,1,0

Lock Workstation

Rundll32.exe User32.dll,LockWorkStation

Hibernate Computer

rundll32.exe PowrProf.dll,SetSuspendState

Restart Computer

Shutdown.exe -r -t 00

Shutdown Computer

Shutdown.exe -s -t 00

Enjoy!




  • Leave a Reply