However, if you need to create a shortcut to perform one of these actions directly, the operating system does not provide you such an option.You need to create such shortcuts manually, using a special set of commands.Before you continue, you might be interested in knowing that it is possible to create a shortcut for the good old classic Shut Down Windows dialog.
![]() We showed you how it can be done here: How to create a shortcut to the Shut Down Windows dialog in Windows 10 Create Shutdown Shortcut in Windows 10 Right click the Desktop and select New - Shortcut. In the shortcut target box, type or copy-paste the following command: shutdown s t 0 See the following screenshot: Set the desired icon and name for your shortcut. By default, the shutdown s t 0 command will perform a full shutdown. This means that the fast startup feature will not be used the next time you start your computer. If you are using Fast Startup, you should modify the shutdown command and add the hybrid switch as follows: Advertisement shutdown s hybrid t 0 Create Restart Shortcut in Windows 10 To create a shortcut to restart Windows 10, use the shutdown r t 0 command as follows: Right click the Desktop and select New - Shortcut. In the shortcut target box, type or copy-paste the following command: shutdown r t 0 See the following screenshot: Set the desired icon and name for your shortcut. Rundll32 Exe Powrprof Dll Setsuspendstate Standby For Windows 10 The CommandSleep Shortcut for Windows 10 The command to put the computer to sleep is as follows: rundll32.exe powrprof.dll,SetSuspendState 0,1,0 However, if you have hibernation enabled, which is on by default on most computers, the command will put your PC into hibernation instead. I explained this in detail here: How to sleep Windows 10 from the command line. So, you can create a batch file sleep.cmd with the following contents: powercfg -h off. Then the rundll32 command will work correctly and put the PC to sleep. Lets assume that you saved the batch file to the folder c:apps. Then you create a shortcut to put Windows 10 to sleep this way: Right click the Desktop and select New - Shortcut. In the shortcut target box, type or copy-paste the following command: c:appssleep.cmd Correct the file path according to your preferences. Hibernate Shortcut for Windows 10 As mentioned above, when hibernation is enabled, the same command hibernates your PC so create the following batch file: powercfg -h on. Here are additional articles you might be interested in: How to set the default action for the Shutdown dialog in Windows 10 All ways to restart and shutdown Windows 10 The Slide-to-Shutdown feature in Windows 10 Speed up slow shutdown in Windows 10 Thats it. If you have a question or suggestions, you are welcome to comment. You can help the site keep bringing you interesting and useful content and software by using these options: Share this post By Sergey Tkachenko on July 15, 2016 in Windows 10. About Sergey Tkachenko Sergey Tkachenko is a software developer from Russia who started Winaero back in 2011. On this blog, Sergey is writing about everything connected to Microsoft, Windows and popular software. Rundll32 Exe Powrprof Dll Setsuspendstate Standby Install CAB AndView all posts by Sergey Tkachenko Post navigation How to install CAB and MSU updates in Windows 10 Avoid accidental shut down or restart in Windows 10 with ShutdownGuard 21 thoughts on Create Shutdown, Restart, Hibernate and Sleep Shortcuts in Windows 10 Josee May 21, 2017 at 11:31 pm Is it possible too to get a specific drive in hibernate e.g. D: Reply Sergey Tkachenko Post author May 22, 2017 at 12:34 am A drive for what For the hiberfil.sys file Reply David June 14, 2017 at 2:14 pm The.bat file puts my computer into hibernation.what now Reply Kevin July 3, 2017 at 6:43 am Hello: I have hibernation enabled.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |