1.    05 Mar 2016 #1
    Join Date : Mar 2016
    Posts : 2
    Windows 10

    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.    05 Mar 2016 #2
    Join Date : Feb 2015
    Bamberg Germany
    Posts : 18,085
    Win10 Pro, Win10 Pro N, Win10 Home, Win10 Pro Insider Fast Ring, Windows 8.1 Pro, Ubuntu
      My ComputersSystem Spec
  3.    05 Mar 2016 #3
    Join Date : Nov 2015
    Posts : 4,892
    windows 10 Home threshold2

    Quote Originally Posted by spierce 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
    Join Date : Feb 2014
    Posts : 9,504
    Windows 10 Professional

    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 ComputersSystem Spec
  5.    05 Mar 2016 #5
    Join Date : Mar 2016
    Posts : 2
    Windows 10
    Thread Starter

    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.    06 Mar 2016 #6
    Join Date : Feb 2015
    Bamberg Germany
    Posts : 18,085
    Win10 Pro, Win10 Pro N, Win10 Home, Win10 Pro Insider Fast Ring, Windows 8.1 Pro, Ubuntu

    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:
    Click image for larger version. 

Name:	Sleep.png 
Views:	97 
Size:	100.7 KB 
ID:	68007
      My ComputersSystem Spec
  7.    06 Mar 2016 #7
    Join Date : Feb 2015
    Bamberg Germany
    Posts : 18,085
    Win10 Pro, Win10 Pro N, Win10 Home, Win10 Pro Insider Fast Ring, Windows 8.1 Pro, Ubuntu

    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
  8.    02 Jun 2016 #8
    Join Date : Nov 2015
    Posts : 2
    Windows 10 64 bit

    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

 


Similar Threads
Thread Forum
Solved Windows 10 sleep shortcut
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...
General Support
windows 10 log in screen does not have a place to login after sleep
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...
User Accounts and Family Safety
Hotkeys or desktop keyboard (not TypePad) shortcut for SLEEP
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...
General Support
Recent place, all programs, task bar, sleep mode and monitor questions
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...
General Support
Solved How do I place a desktop tile on screen in Windows 10
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?
Customization
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 15:47.
Find Us
Twitter Facebook Google+ Ten Forums iOS App Ten Forums Android App



Windows 10 Forums