Windows 10: How do I place a SLEEP shortcut on Windows 10 desktop

  1.    05 Mar 2016 #1

    How do I place a SLEEP shortcut on Windows 10 desktop

    I am new to this forum and new to Windows 10. I am trying to place a shortcut on the desktop to put the computer to sleep. I tried following the instructions from a few sites that recommended placing a link into the desktop shortcut menu and the suggested shortcut Command does not put the computer to sleep. instead it shuts the computer down. Can someone give me the Sleep command. thank you.
    The wrong command is as follows: Rundll32.exe Powrprof.dll,SetSuspendState Sleep
    I tried one or 2 other variations of this command and the new shortcut also turned over the computer
      My ComputerSystem Spec

  2. Posts : 20,850
    Win10 Pro, Win10 Pro N, Win10 Home, Win10 Pro Insider Fast Ring, Windows 8.1 Pro, Ubuntu
       05 Mar 2016 #2
      My ComputersSystem Spec

  3. Posts : 5,147
    windows 10 Home threshold2
       05 Mar 2016 #3

    spierce said: View Post
    instead it shuts the computer down.
    I have just tried the method.
    It is true that it shuts down.
    However, pressing the Power button brought me back to my desktop without signing in. Although it took a bit longer to do that than in normal sleep mode.
      My ComputerSystem Spec

  4.    05 Mar 2016 #4

    I'm pretty sure SLEEP, in the classic sense, has been eliminated from RunMode, 'breaks' too many things.

    I believe %windir%\System32\rundll32.exe powrprof.dll,SetSuspendState Standby
    will do the same as 'Sleep' in the Power Menu.
      My ComputerSystem Spec

  5.    05 Mar 2016 #5

    windows 10 desktop shortcut for sleep

    I tried the "Command" you suggested below and it had the same effect as the other commands I tried. That is it had the effect of turning off the computer completely. So still no luck.
      My ComputerSystem Spec

  6. Posts : 20,850
    Win10 Pro, Win10 Pro N, Win10 Home, Win10 Pro Insider Fast Ring, Windows 8.1 Pro, Ubuntu
       06 Mar 2016 #6

    If you went to the link I posted you need to turn hibernation off(and keep it off), or create a batch file, something like:

    @echo off
     powercfg -h off
     rundll32.exe powrprof.dll,SetSuspendState 0,1,0
     powercfg -h on
    Then send to desktop to create your shortcut.
    Here is an icon you can use for the shortcut if you want:


    What it looks like:
    Click image for larger version. 

Name:	Sleep.png 
Views:	107 
Size:	100.7 KB 
ID:	68007
      My ComputersSystem Spec

  7. Posts : 20,850
    Win10 Pro, Win10 Pro N, Win10 Home, Win10 Pro Insider Fast Ring, Windows 8.1 Pro, Ubuntu
       06 Mar 2016 #7

    Oh yeah, and to skip the UAC prompt, see this tutorial at Seven Forums:
    Elevated Program Shortcut without UAC Prompt - Create - Windows 7 Help Forums
      My ComputersSystem Spec

  • Posts : 2
    Windows 10 64 bit
       02 Jun 2016 #8

    Just to clarify, the command doesn't turn the computer off, it either hibernates or sleeps depending on whether hibernation is enabled or not. When I attempted to do this I originally wanted only sleep, but actually hibernation is not such a bad idea. It uses a nice chunk of disk space, but it doesn't use any energy.
      My ComputerSystem Spec


    Related Threads
    Solved Windows 10 sleep shortcut in General Support
    Hello, in Windows 7 I used this cmd to sleep my PC: rundll32.exe powrprof.dll,SetSuspendState 0,1,0 (I have hibernation disabled) when I pressed a key my desktop would come up instantly, but now in Windows 10 it goes all the way through POST...
    After I upgraded from Win 8.1 to Win 10 I have a strange problem. After my laptop sits over night when I go to use it in the morning, when I shake my mouse or hit a button so I can log in all I can see is the Windows start screen but not the...
    Win 10. Using Sleep button on my HP desktop keyboard works fine. WIN 10 On my Surface (SP3), using Logitech K740 illuminated keyboard with Docking station. No obvious sleep button on the keyboard. If possible: How can I create a Sleep hot...
    I got Windows 10 yesterday. Here's some things I've noticed or problems I've encountered. - Where did recent places go in File Explorer? - Where did the All Programs shortcut go above All Apps go in the Start Menu? I swear it was there after...
    Windows 8.1 had a desktop tile in the start screen. Windows 10 does not appear to have it. Is there a way to get the desktop tile back in windows 10?
    Our Sites
    Site Links
    About Us
    Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

    Designer Media Ltd
    All times are GMT -5. The time now is 17:44.
    Find Us