How do I place a SLEEP shortcut on Windows 10 desktop


  1. Posts : 2
    Windows 10
       #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 Computer


  2. Posts : 27,164
    Win11 Pro, Win10 Pro N, Win10 Home, Windows 8.1 Pro, Ubuntu
       #2
      My Computers


  3. Posts : 5,452
    windows 10 Pro ver 21H2 build 19044.1348
       #3

    spierce said:
    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 Computer


  4. Posts : 17,838
    Windows 10
       #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 Computer


  5. Posts : 2
    Windows 10
    Thread Starter
       #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 Computer


  6. Posts : 27,164
    Win11 Pro, Win10 Pro N, Win10 Home, Windows 8.1 Pro, Ubuntu
       #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:

    Code:
    @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:

    Sleep icon.zip

    What it looks like:
    How do I place a  SLEEP shortcut on  Windows 10 desktop-sleep.png
      My Computers


  7. Posts : 27,164
    Win11 Pro, Win10 Pro N, Win10 Home, Windows 8.1 Pro, Ubuntu
       #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 Computers


  8. Posts : 2
    Windows 10 64 bit
       #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 Computer


 

  Related Discussions
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:19.
Find Us




Windows 10 Forums