 | | Welcome to Windows 7 Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows 7. The Windows 7 forum also covers news and updates and has an extensive Windows 7 tutorial section that covers a wide range of tips and tricks. | Windows 7 - Sleep Shortcut - Create
Sleep Shortcut - Create How to Create a Sleep Shortcut in Windows
Published by Brink
02-05-2010
| Sleep Shortcut - Create 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 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. 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. 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) 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. 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. 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 
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. 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) 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 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 |  Published by | | Administrator Join Date: Oct 2008 Location: Texas Posts: 34,824 | |
 Tutorial Tools | | | | | | | | | |
02-05-2010
|
#1 | | Windows 7 Ultimate (32 bit) |
This is all I use on my desktop shortcut.
C:\Windows\System32\rundll32.exe Powrprof.dll,SetSuspendState Sleep
| My System Specs | | System Manufacturer/Model Number Lenovo Desktop H420 OS Windows 7 Ultimate (32 bit) CPU Intel i3 2100 Motherboard Lenovo LGA1155 MB Memory 4GB of DDR3 memory Graphics Card PCI-E NVIDIA GeForce 8500 GT Sound Card Build-in on MB Monitor(s) Displays Samsung 23" HD Model 2333 Screen Resolution 1920x 1080 Keyboard Who needs a keyboard? Mouse Logitech Laser G7 wireless PSU 450 Watt and some fans that blow Case Small tower Cooling Yes I am cool. lol Hard Drives C: Main Drive SATA 250GB
D:Backup Drive 500GB SATA Internet Speed Cable - Down 30 Mbps, UP 12 Mbps Other Info Motorola SB-6120 Cable modem DOC 3
Logitech Pro 9000 webcam |
02-05-2010
|
#2 | | Windows 7 Ultimate x64 SP1 |
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 System Specs | | System Manufacturer/Model Number Self built custom OS Windows 7 Ultimate x64 SP1 CPU Intel i7-980X 3.3 Ghz (3.48 Ghz OC'd) Motherboard ASUS P6X58D Premium Memory 12 GB (2GBx6) DDR3 PC3-16000 2000 MHz Kingston HyperX Graphics Card Sapphire HD5870 Eyefinity 6 2GB Sound Card Realtek HD Audio ALC889 Integrated Chip Monitor(s) Displays 3x 27" Asus VE278Q Screen Resolution 1920x1080 Keyboard Logitech Cordless Desktop MX 5500 Revolution Mouse Logitech Cordless Desktop MX 5500 Revolution PSU OCZ Series Gold OCZZ1000M 1000W Case Corsair Obsidian 800D Cooling Thermalright Ultra 120 Extreme Copper CPU heat sink w/120 MM Hard Drives 160GB OCZ RevoDrive X2
** 2 x 1TB Samsung HDD HD154UI SATA Internet Speed 50 Mb/s Download and 2 Mb/s Upload Other Info Microsoft LifeCam Cinema
** Lite-On iHBS212 12x BD Writer
** Samsung CLX-3175FW Printer
** Netgear WNDR3800 Router
** Motorola SBG6580 Cable Modem
** 2x APC Back-UPS XS 1500 |
08-28-2010
|
#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 System Specs | | System Manufacturer/Model Number Assembled OS Windows 7 x64 CPU Core i5 Motherboard Gigabyte P55A-UD3P Memory 4 GB DDR3 memory Graphics Card ATI Radeon HD5450 Monitor(s) Displays LG Flatron 19in wide screen Hard Drives 500 GB WD x 1 |
08-28-2010
|
#4 | | Windows 7 Ultimate x64 SP1 |
Hello Magoood,
Which Method/option did you use? | My System Specs | | System Manufacturer/Model Number Self built custom OS Windows 7 Ultimate x64 SP1 CPU Intel i7-980X 3.3 Ghz (3.48 Ghz OC'd) Motherboard ASUS P6X58D Premium Memory 12 GB (2GBx6) DDR3 PC3-16000 2000 MHz Kingston HyperX Graphics Card Sapphire HD5870 Eyefinity 6 2GB Sound Card Realtek HD Audio ALC889 Integrated Chip Monitor(s) Displays 3x 27" Asus VE278Q Screen Resolution 1920x1080 Keyboard Logitech Cordless Desktop MX 5500 Revolution Mouse Logitech Cordless Desktop MX 5500 Revolution PSU OCZ Series Gold OCZZ1000M 1000W Case Corsair Obsidian 800D Cooling Thermalright Ultra 120 Extreme Copper CPU heat sink w/120 MM Hard Drives 160GB OCZ RevoDrive X2
** 2 x 1TB Samsung HDD HD154UI SATA Internet Speed 50 Mb/s Download and 2 Mb/s Upload Other Info Microsoft LifeCam Cinema
** Lite-On iHBS212 12x BD Writer
** Samsung CLX-3175FW Printer
** Netgear WNDR3800 Router
** Motorola SBG6580 Cable Modem
** 2x APC Back-UPS XS 1500 |
08-28-2010
|
#5 | | |

Quote: Originally Posted by Brink 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 System Specs | | System Manufacturer/Model Number Assembled OS Windows 7 x64 CPU Core i5 Motherboard Gigabyte P55A-UD3P Memory 4 GB DDR3 memory Graphics Card ATI Radeon HD5450 Monitor(s) Displays LG Flatron 19in wide screen Hard Drives 500 GB WD x 1 |
08-28-2010
|
#6 | | Windows 7 Ultimate x64 SP1 |
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 System Specs | | System Manufacturer/Model Number Self built custom OS Windows 7 Ultimate x64 SP1 CPU Intel i7-980X 3.3 Ghz (3.48 Ghz OC'd) Motherboard ASUS P6X58D Premium Memory 12 GB (2GBx6) DDR3 PC3-16000 2000 MHz Kingston HyperX Graphics Card Sapphire HD5870 Eyefinity 6 2GB Sound Card Realtek HD Audio ALC889 Integrated Chip Monitor(s) Displays 3x 27" Asus VE278Q Screen Resolution 1920x1080 Keyboard Logitech Cordless Desktop MX 5500 Revolution Mouse Logitech Cordless Desktop MX 5500 Revolution PSU OCZ Series Gold OCZZ1000M 1000W Case Corsair Obsidian 800D Cooling Thermalright Ultra 120 Extreme Copper CPU heat sink w/120 MM Hard Drives 160GB OCZ RevoDrive X2
** 2 x 1TB Samsung HDD HD154UI SATA Internet Speed 50 Mb/s Download and 2 Mb/s Upload Other Info Microsoft LifeCam Cinema
** Lite-On iHBS212 12x BD Writer
** Samsung CLX-3175FW Printer
** Netgear WNDR3800 Router
** Motorola SBG6580 Cable Modem
** 2x APC Back-UPS XS 1500 |
08-28-2010
|
#7 | | |

Quote: Originally Posted by Brink 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 System Specs | | System Manufacturer/Model Number Assembled OS Windows 7 x64 CPU Core i5 Motherboard Gigabyte P55A-UD3P Memory 4 GB DDR3 memory Graphics Card ATI Radeon HD5450 Monitor(s) Displays LG Flatron 19in wide screen Hard Drives 500 GB WD x 1 |
08-28-2010
|
#8 | | Windows 7 Ultimate x64 SP1 |
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 System Specs | | System Manufacturer/Model Number Self built custom OS Windows 7 Ultimate x64 SP1 CPU Intel i7-980X 3.3 Ghz (3.48 Ghz OC'd) Motherboard ASUS P6X58D Premium Memory 12 GB (2GBx6) DDR3 PC3-16000 2000 MHz Kingston HyperX Graphics Card Sapphire HD5870 Eyefinity 6 2GB Sound Card Realtek HD Audio ALC889 Integrated Chip Monitor(s) Displays 3x 27" Asus VE278Q Screen Resolution 1920x1080 Keyboard Logitech Cordless Desktop MX 5500 Revolution Mouse Logitech Cordless Desktop MX 5500 Revolution PSU OCZ Series Gold OCZZ1000M 1000W Case Corsair Obsidian 800D Cooling Thermalright Ultra 120 Extreme Copper CPU heat sink w/120 MM Hard Drives 160GB OCZ RevoDrive X2
** 2 x 1TB Samsung HDD HD154UI SATA Internet Speed 50 Mb/s Download and 2 Mb/s Upload Other Info Microsoft LifeCam Cinema
** Lite-On iHBS212 12x BD Writer
** Samsung CLX-3175FW Printer
** Netgear WNDR3800 Router
** Motorola SBG6580 Cable Modem
** 2x APC Back-UPS XS 1500 |
08-28-2010
|
#9 | | |
I tried everything from scratch but still same result.
Here you are all the stuff you requested. Hope this is exactly what you want. | My System Specs | | System Manufacturer/Model Number Assembled OS Windows 7 x64 CPU Core i5 Motherboard Gigabyte P55A-UD3P Memory 4 GB DDR3 memory Graphics Card ATI Radeon HD5450 Monitor(s) Displays LG Flatron 19in wide screen Hard Drives 500 GB WD x 1 Sleep Shortcut - Create problems? All times are GMT -5. The time now is 08:24 PM. |  |