If you frequently use the Sleep or Hibernate feature in Windows, you can create and pin a shortcut to the Taskbar to put your computer to sleep or hibernate mode in a single click, without having to open the Start menu. Here is how to do that.
Put Windows to Sleep
NirCmd is multi-purpose tool from Nirsoft, that can be used to automate many complicated system management tasks using shortcut or command-line. To put your computer to sleep mode, create a shortcut with the following target:
PsShutdown is part of the PsTools suite from Microsoft Windows SysInternals which every sysadmin would have in their toolkit. Here is the command-line to place the system into sleep mode.
When you use this tool for the first time, you’ll see a EULA screen which you need to accept to proceed.
Using Wizmo, here is the command-line:
Put Windows to Hibernate
Here are the options to put the system into hibernate mode. First, using the built-in solution shutdown.exe.
Turn off the monitor
To turn off the monitor without putting the system to sleep, here are the options.
nircmd monitor off
RELATED: How to Turn Off Monitor Using Shortcut or Command-line in Windows
One small request: If you liked this post, please share this?One "tiny" share from you would seriously help a lot with the growth of this blog. Some great suggestions:
- Pin it!
- Share it to your favorite blog + Facebook, Reddit
- Tweet it!
1 thought on “Put Windows Into Sleep or Hibernate Mode Using Command-line”
when you want to automatically sleep than after wake up…
psshutdown.exe is the tool to be used…
I tried everything even to set hibernate off…
The solution came up when i used pstools to automatically to put in sleep mode.
download it from microsoft :
Sleep via CMD: psshutdown. exe -d -t 0