Sleep Shortcut - Create

Page 1 of 3 123 LastLast
    Sleep Shortcut - Create

    Sleep Shortcut - Create

    How to Create a Sleep Shortcut in Windows
    Published by
    Designer Media Ltd


    How to Create a Sleep Shortcut in Windows

       Information
    This will show you how to create or download a Sleep shortcut to put your computer to sleep with. You can also Pin to Taskbar or Pin to Start Menu this shortcut, or move where you like for easy use.
       Tip
    If you would also like to create a keyboard shortcut key to use to open the shortcut with from either method below, then see: How to Create a Keyboard Shortcut for a Program





    METHOD ONE

    A Sleep Shortcut from a VBS File


    NOTE: This method for a sleep shortcut will allow you to put your computer to sleep no matter if hibernate is enabled or disabled, or what you have your power plan settings set to.
    1. Set your Start Menu power button to Sleep. (see screenshot below)
    WARNING: This Sleep shortcut will do whatever you have your Start Menu power button set to, so it's important to have this set to Sleep for this shortcut to put your computer to sleep.
    Sleep Shortcut - Create-start_menu_pwr_button.jpg
    2. Click on the download button below to download the file below.
    METHOD_1_Sleep_Shortcut.zip
    3. Click on Save, and save the .zip file to the desktop.

    4. Select and extract both the Sleep shortcut and "Sleep Shortcut" folder to the desktop.

    5. Open the "Sleep Shortcut" folder, then right click on the Sleep.vbs file, click on Properties, General tab, and on the Unblock button. (See screenshot below)
    NOTE: If you do not have a Unblock button under the General tab, then the shortcut is already unblocked and you can continue on to step 6.

    Sleep Shortcut - Create-unblock_vbs.jpg

    6.
    Right click on the "Sleep Shortcut" folder on the desktop, and click on Cut.

    7. Open a Windows Explorer window and navigate to the C:\Program Files folder, then right click on the C:\Program Files folder and click on Paste. (See screenshot below)

    Sleep Shortcut - Create-method-1_step1.jpg

    8.
    If prompted, click on Continue and Yes to approve copying the "Sleep Shortcut" folder into the C:\Program Files folder.

    9. Right click on the Sleep shortcut, and click on Properties, General tab, and on the Unblock button. (See screenshot below)
    NOTE: If you do not have a Unblock button under the General tab, then the shortcut is already unblocked and you can continue on to step 10.
    Sleep Shortcut - Create-unblock_sleep_vbs.jpg
    10. Move the Sleep shortcut on the desktop to where you like for easy use.

    11. When done, you can delete the downloaded .zip file on the desktop if you like, or save it to use again.





    METHOD TWO

    A Normal Sleep Shortcut


    NOTE: This method for a sleep or standby shortcut will allow you to put your computer to sleep, but you must have hibernate disabled for this shortcut to not have your computer hibernate instead.



    OPTION ONE

    Download the Shortcut

    1. Click on the download button below to download the Sleep.zip file.2. Click on Save, and save the .zip file to the desktop.

    3. Open the .zip file and extract the Sleep shortcut to the desktop.

    4. Right click on the Sleep shortcut, and click on Properties, General tab, and on the Unblock button. (See screenshot below)
    NOTE: If you do not have a Unblock button under the General tab, then the shortcut is already unblocked and you can continue on to step 5.

    Sleep Shortcut - Create-unblock.jpg

    5. Move the shortcut to where you like for easy use.

    6. When done, you can delete the downloaded .zip file on the desktop if you like, or save it to use again.




    OPTION TWO

    Manually Create the Shortcut

    1. Right click on a empty area on desktop, and click on New and Shortcut.

    2. Type the command below into the location area, and click on the Next button. (See screenshot below)

    Code:
    rundll32.exe powrprof.dll,SetSuspendState
    Sleep Shortcut - Create-step1.jpg
    3. Type Sleep for the name, and click on the Finish button. (See screenshot below)
    NOTE: You can name this anything you would like though.

    Sleep Shortcut - Create-step2.jpg
    4. Right click on the new Sleep shortcut on the Desktop and click on Properties.

    5. Click on the Shortcut tab, then click on the Change Icon button. (See screenshot below)

    Sleep Shortcut - Create-method-2_step3.jpg

    6.
    In the line under "Look for icons in this file", type the location below and press Enter. (See screenshot below)

    Code:
    C:\Windows\System32\imageres.dll
    Sleep Shortcut - Create-step4.jpg

    7.
    Select the icon highlighted in blue above and click on OK. (See screenshot above)
    NOTE: You can use any icon that you would like instead though.

    8. Click on OK. (See screenshot below step 5)

    9. Disable hibernate.

    10. Move the shortcut to where you like for easy use.
    That's it,
    Shawn







  1. Posts : 846
    Windows 10 Pro
       #1

    This is all I use on my desktop shortcut.
    C:\Windows\System32\rundll32.exe Powrprof.dll,SetSuspendState Sleep
      My Computer


  2. Posts : 72,037
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #2

    Hello Iggy,

    Yeah, it does the same thing as in METHOD TWO with hibernate disabled. With hibernate enabled, it hibernated instead of sleep for me as well though. :)
      My Computer


  3. Posts : 42
    Windows 7 x64
       #3

    It shuts down my PC instead


    I tried using this tutorial in order to sleep my PC easily but what actually happened is that my PC turned off completely (COMPLETE SHUTDOWN). Any clue of what is wrong? I wish I can sleep without having hibernation disabled because I need to hibernate my PC after finishing my day.

    I'm running windows 7 x64

    Thanks in advance.
      My Computer


  4. Posts : 72,037
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #4

    Hello Magoood,

    Which Method/option did you use? :)
      My Computer


  5. Posts : 42
    Windows 7 x64
       #5

    Brink said:
    Hello Magoood,

    Which Method/option did you use? :)
    I used the visual basic script file in Method 1 and I used the VBS only without the need of anything else. I assigned a button on my keyboard (Microsoft Digital Media 3000) for this vbs file and when I pressed it, I was astonished to find all open windows and programs are closed and windows followed them!
      My Computer


  6. Posts : 72,037
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #6

    Magoood,

    It's due to what your Start Menu power button is set to. It will need to be set to Sleep for the shortcut to put the computer to sleep instead of shutdown. I have updated the tutorial and add step 1 under METHOD ONE for this to help. :)
      My Computer


  7. Posts : 42
    Windows 7 x64
       #7

    Brink said:
    Magoood,

    It's due to what your Start Menu power button is set to. It will need to be set to Sleep for the shortcut to put the computer to sleep instead of shutdown. I have updated the tutorial and add step 1 under METHOD ONE for this to help. :)
    Thanks for the reply. Yes, my start menu power button was set to shut down so I set it to standby as you wanted but now what the vbs file is doing is that it brings me the "Shut Down Windows" Dialog box and that's it! I have to do an extra step which is clicking OK (because sleep is the selected option by default) but I believe this is not the proper behavior.
      My Computer


  8. Posts : 72,037
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #8

    Magoood,

    With my Start Menu power button setting set to Sleep, the shortcut puts my computer to sleep no matter what I have set in Power Options or if hibernate it enabled or disabled.

    As a test, delete the downloads from the tutorial, then start over on METHOD ONE in tutorial to see if may just be a simple mistake somewhere.

    If it still doesn't work after redoing it, then could you post back with screenshots of all related settings? (start menu power button, all settings under "Sleep" in advanced power settings) This way I'll test it with the same settings that you are using.
      My Computer


  9. Posts : 72,037
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #9

    Yep, those are them.

    Ok. I think I know what is happening now. The only way that I can recreate getting the "Shut Down Windows" Dialog box while using the shortcut is if the VBS file was not unblocked in step 5. Double check in the "Sleep Shortcut" folder in "Program Files" to see if the Sleep.vbs is unblocked.
      My Computer


 
Page 1 of 3 123 LastLast

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 18:46.
Find Us