![]() ![]() ![]() Another issue with this workaround is that it must be executed from an elevated command prompt. When it wakes up, the last line will turn on hibernation. Then the rundll32 command will work correctly and put the PC into sleep. In the example above, I've used the powercfg command to disable hibernation, just before using the Rundll32 command. Rundll32.exe powrprof.dll,SetSuspendState 0,1,0 So you need to apply a workaround which isn't exactly ideal, something like this. If hibernation is disabled on your PC, you can enter Sleep mode using the following command: rundll32.exe powrprof.dll,SetSuspendState 0,1,0īut if you have enabled hibernation, then the above command hibernates the PC instead of entering sleep mode. How to sleep Windows 10 from the command line It does not provide a command line tool to directly enter sleep. Windows10 only allows the hardware Power button or the Start Menu power button to enter Sleep (standby) mode. In this article, I would like to share a working way to initiate sleep from the command line. This can be definitely useful if you are using the sleep mode frequently and want to create a shortcut to put your PC into sleep directly or via some batch file. Recently one of our readers asked us how to make his Windows 10 PC enter sleep from the command line. RECOMMENDED: Click here to fix Windows issues and optimize system performance ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |