Putting Windows to sleep from cmd.exe aka Command Prompt / Command Line

Asphyxia

Owner
Administrator
Apr 25, 2015
1,845
2
2,199
327
Firstly, open notepad.exe as administrator:
Code:
powercfg -hibernate off
rundll32.exe powrprof.dll,SetSuspendState 0,1,0

Save this to C:\Windows as "sleep.bat" (All Files).

Open command prompt as Administrator and type "sleep", Enter.

There we go, botting Windows with a batch script - skir skir.
 
Top