Background
On one of my machines, I noticed that the menu option to access the sleep mode is missing.
Proof
Image
Workaround
Outline
- powrprof.dll
powrprof.dll
Outline
- Access the powrprof.dll
- Using rundll32, load powrprof.dll
- Pass along the payload “SetSuspendState Sleep“
Syntax
rundll32.exe powrprof.dll, SetSuspendState Sleep
Sample
rem How to Sleep Windows 10 PC using CMD or keyboard shortcut rem https://www.how2shout.com/how-to/how-to-sleep-windows-10-pc-using-cmd-or-keyboard-shortcut.html rundll32.exe powrprof.dll, SetSuspendState Sleep
Credit
Crediting h2Media ( How2Shout ).
How to Sleep Windows 10 PC using CMD or keyboard shortcut
Link
Pretty Gangstar stuff.