Hibernate Shortcut - Create

How to Create a Hibernate Shortcut in Windows

   Information
This tutorial will show you how to create a shortcut for Hibernation on the desktop. This can then be moved anywhere you like.
   Warning
You will need to enable hibernate for this hibernate shortcut to work. Otherwise it will put your computer to sleep instead.





Step 1: Right click on the desktop and select New -> Shortcut
picture.php

Step 2: Type this into the location field:
C:\Windows\System32\rundll32.exe powrprof.dll,SetSuspendState 0,1,0


picture.php

Step 3: Name it whatever you would like:
picture.php

You now have your Hibernation shortcut!


Step 4 (optional): Change the icon to something meaningful. Right click on the shortcut, and select Properties. In the Shortcut tab, choose "Change Icon". You can use the default icons in there, or choose from the power icons by clicking browse, and typing this:

%SystemRoot%\System32\powrprof.dll


Step 5: Enable hibernate.


All done!
~Lordbob








 
Last edited by a moderator:
Lordbob75. thanks for the guide. would you kindly help me to create two shortcurts to toggle between power schemes 'optimized' and ´performance´? that will help me to easily activate / deactivate the asus cool´n´quite feature inside windows 7. thanks m8
 

My Computer

Computer Manufacturer/Model Number
Personal Built (frankenstein) - WEI Here -> http://www.sevenforums.com/451826-post2094.html
OS
dual: windows 7 Ultimate x64 7600 and XP SP3
CPU
AMD PHENOM II 720 2800MHz
Motherboard
ASUS M4A78 sb700
Memory
2 X 2 OCZ REAPER 1066MHz
Graphics Card(s)
MSI 4850 1GB OC
Sound Card
REALTEK HD ONBOARD
Monitor(s) Displays
LCD SAMSUNG 21" T220
Screen Resolution
1680 x 1050 - 60Hz
Hard Drives
1.5 TB SEAGATE SATA II 7200 RPM
PSU
THERMALTAKE 430W PFC ACTIVE W0069
Case
SOLID FULL ATX
Cooling
COOLER MASTER TX-3 HEAT PIPES
Keyboard
logitech cordless keyboard
Mouse
microsoft wireless
Internet Speed
4Mb
Other Info
sound system: logitech x540 5.1
Zboard Fang gaming keyboard
PS2 joystick
Philips VOIP fone
Last edited:

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self built custom
OS
64-bit Windows 11 Pro for Workstations
CPU
Intel i7-8700K OC'd to 5 GHz
Motherboard
ASUS ROG Maximus XI Formula Z390
Memory
64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz
Graphics Card(s)
ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Sound Card
Integrated
Monitor(s) Displays
2 x Samsung Odyssey G7 27"
Screen Resolution
2560x1440
Hard Drives
1TB Samsung 990 PRO M.2,
4TB Samsung 990 PRO PRO M.2,
TerraMaster F8 SSD Plus NAS
PSU
Seasonic Prime Titanium 850W
Case
Thermaltake Core P3
Cooling
Corsair Hydro H115i
Keyboard
Logitech wireless K800
Mouse
Logitech MX Master 4
Internet Speed
2 Gb/s Download and 100 Mb/s Upload
Antivirus
Malwarebyte Anti-Malware Premium
Browser
Google Chrome
Other Info
Logitech Z625 speaker system,
Logitech BRIO 4K Pro webcam,
HP Color LaserJet Pro MFP M477fdn,
APC SMART-UPS RT 1000 XL - SURT1000XLI,
Galaxy S23 Plus phone
Woha Brink! thanks to pinpoint that! it's EXACTLY what I'm looking for! :)

nice forum I found it! :party:
 

My Computer

Computer Manufacturer/Model Number
Personal Built (frankenstein) - WEI Here -> http://www.sevenforums.com/451826-post2094.html
OS
dual: windows 7 Ultimate x64 7600 and XP SP3
CPU
AMD PHENOM II 720 2800MHz
Motherboard
ASUS M4A78 sb700
Memory
2 X 2 OCZ REAPER 1066MHz
Graphics Card(s)
MSI 4850 1GB OC
Sound Card
REALTEK HD ONBOARD
Monitor(s) Displays
LCD SAMSUNG 21" T220
Screen Resolution
1680 x 1050 - 60Hz
Hard Drives
1.5 TB SEAGATE SATA II 7200 RPM
PSU
THERMALTAKE 430W PFC ACTIVE W0069
Case
SOLID FULL ATX
Cooling
COOLER MASTER TX-3 HEAT PIPES
Keyboard
logitech cordless keyboard
Mouse
microsoft wireless
Internet Speed
4Mb
Other Info
sound system: logitech x540 5.1
Zboard Fang gaming keyboard
PS2 joystick
Philips VOIP fone
You're most welcome Tranqueirex. :)
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self built custom
OS
64-bit Windows 11 Pro for Workstations
CPU
Intel i7-8700K OC'd to 5 GHz
Motherboard
ASUS ROG Maximus XI Formula Z390
Memory
64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz
Graphics Card(s)
ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Sound Card
Integrated
Monitor(s) Displays
2 x Samsung Odyssey G7 27"
Screen Resolution
2560x1440
Hard Drives
1TB Samsung 990 PRO M.2,
4TB Samsung 990 PRO PRO M.2,
TerraMaster F8 SSD Plus NAS
PSU
Seasonic Prime Titanium 850W
Case
Thermaltake Core P3
Cooling
Corsair Hydro H115i
Keyboard
Logitech wireless K800
Mouse
Logitech MX Master 4
Internet Speed
2 Gb/s Download and 100 Mb/s Upload
Antivirus
Malwarebyte Anti-Malware Premium
Browser
Google Chrome
Other Info
Logitech Z625 speaker system,
Logitech BRIO 4K Pro webcam,
HP Color LaserJet Pro MFP M477fdn,
APC SMART-UPS RT 1000 XL - SURT1000XLI,
Galaxy S23 Plus phone
User Account Control pops up

I followed the instructions to create a hibernate shortcut in Windows 7. When I use it, a window from User Account Control pops up asking "Do you want to allow the following program to make changes to this computer?" I would rather not disable UAC - is there another way to avoid being prompted?

Teffy
P.S. Thanks for an awesome site!
 

My Computer

Computer Manufacturer/Model Number
custom built from cooltechpc.com
OS
Windows 7 Home Premium 64bit (desktop PC) and 32bit (old tablet PC)
CPU
2.40 gigahertz Intel Core 2 Duo (desktop PC)
Motherboard
ASUSTeK Computer INC. P5B-E
Memory
4GB
Graphics Card(s)
NVIDIA GeForce 7600 GS
Sound Card
"SoundMAX Integrated Digital HD Audio" on mobo
Monitor(s) Displays
NEC LCD3090WB[was 19" LaCie and 19" Dell CRTs (don't laugh)]
Screen Resolution
2550 x 1600
Hard Drives
internal: WDC WD5000AAKS-65TMA0 ATA
WDC WD1500ADFD-00NLR1 ATA

external: WD "Elements" Ext HDD 1021 USB
XIMETA NetDISK Network storage via Ethernet
PSU
Antec Neo 430 Watt Quiet Power Supply
Case
Antec P180
Cooling
Scythe Ninja PLUS Rev.B CPU Cooler SCNJ-1100P
Keyboard
Key Tronic Classic-U2
Mouse
Kensington Expert Mouse, Wacom Intuos Graphics 2 tablet
I do not know of a way, but clicking Yes isn't a bad problem at least.

~Lordbob
 

My Computer

Computer Manufacturer/Model Number
Hera
OS
Windows 7 Ultimate x64, Mint 9
CPU
Intel i5-2500k
Motherboard
ASUS P8P67 Pro
Memory
2x 4Gb Corsair VENGEANCE DDR3-1600
Graphics Card(s)
NVidia GeForce N260GTX Twin Frozr
Sound Card
Realtek HD OnBoard Audio
Monitor(s) Displays
ASUS 24" Monitor
Screen Resolution
1920x1080
Hard Drives
G.SKILL Phoenix Series 60GB SATA II MLC Internal Solid State Drive (SSD)
SAMSUNG Spinpoint F3R 1TB 7200 RPM 32MB Cache SATA II
PSU
Cooler Master Real Power Pro 750W
Case
Cooler Master Haf 932
Cooling
Fans
Keyboard
Razer Tarantula
Mouse
Razer Lachesis
Internet Speed
not fast enough

My Computer

Computer Manufacturer/Model Number
Hera
OS
Windows 7 Ultimate x64, Mint 9
CPU
Intel i5-2500k
Motherboard
ASUS P8P67 Pro
Memory
2x 4Gb Corsair VENGEANCE DDR3-1600
Graphics Card(s)
NVidia GeForce N260GTX Twin Frozr
Sound Card
Realtek HD OnBoard Audio
Monitor(s) Displays
ASUS 24" Monitor
Screen Resolution
1920x1080
Hard Drives
G.SKILL Phoenix Series 60GB SATA II MLC Internal Solid State Drive (SSD)
SAMSUNG Spinpoint F3R 1TB 7200 RPM 32MB Cache SATA II
PSU
Cooler Master Real Power Pro 750W
Case
Cooler Master Haf 932
Cooling
Fans
Keyboard
Razer Tarantula
Mouse
Razer Lachesis
Internet Speed
not fast enough
:doh:I've just spent 15 minutes putting together a pack to create a tutorial only to see this live post just as I'm about to start work on it. Nice find...Searches work wonders these days :oops:
 

My Computer

Computer Manufacturer/Model Number
Compaq Desktop
OS
Windows 7 Ultimate x64
CPU
AMD Sempron Dual Core
Memory
3GB
Graphics Card(s)
NVIDIA GeForce 6150SE nForce 430
Screen Resolution
1024x768
Hard Drives
150GB Sata
:doh:I've just spent 15 minutes putting together a pack to create a tutorial only to see this live post just as I'm about to start work on it. Nice find...Searches work wonders these days :oops:
Haha, this has been here for a while, I had forgotten about it until he posted.

~Lordbob
 

My Computer

Computer Manufacturer/Model Number
Hera
OS
Windows 7 Ultimate x64, Mint 9
CPU
Intel i5-2500k
Motherboard
ASUS P8P67 Pro
Memory
2x 4Gb Corsair VENGEANCE DDR3-1600
Graphics Card(s)
NVidia GeForce N260GTX Twin Frozr
Sound Card
Realtek HD OnBoard Audio
Monitor(s) Displays
ASUS 24" Monitor
Screen Resolution
1920x1080
Hard Drives
G.SKILL Phoenix Series 60GB SATA II MLC Internal Solid State Drive (SSD)
SAMSUNG Spinpoint F3R 1TB 7200 RPM 32MB Cache SATA II
PSU
Cooler Master Real Power Pro 750W
Case
Cooler Master Haf 932
Cooling
Fans
Keyboard
Razer Tarantula
Mouse
Razer Lachesis
Internet Speed
not fast enough
Hi lordbob

I used your steps above to create a shortcut about a month or 2 months ago. But I forgot to do the Step 5, right which I just found out today. And, since then I think I've using that shortcut just to save time when turning my laptop on.

But yesterday I think, my mum mistakenly switched off my laptop by doing Shut Down which should be a problem normally but in my case, that turned out to be a big massive problem.

Here's the problem I had:

Code:
http://www.sevenforums.com/bsod-help-support/289794-blue-screen-death-unmountable-boot-volume.html
Now, I couldn't figure it out what was wrong and why all that happened until I saw this:
Code:
http://ittechsolution.com/hibernation-advantage-and-disadvantage
See the 2nd Disadvantage of Hibernation.

Now, I dunno why but I cannot see this Hiberfil.sys in my C drive at all. So I cannot see what's in it or how big it is, so what I did just now is followed your post from here:

Code:
http://www.sevenforums.com/tutorials/819-hibernate-enable-disable.html

Now, I have disabled the Hibernation by the Command Prompt Method, deleted that shortcut as well. I have just rebooted my laptop and waiting for it to turn on and see how it goes. As it is running very very very slow.

Never had any problem like that at all in my life. And it is doing my nut-in tbh.

Would you mind to have a look at my problem please?

Cheers
 

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
Dell
OS
Windows 7 Home Premimum
Memory
4 Gb
abc9873 : hiberfil.sys is a hidden/ system file. In command prompt:
Code:
dir/ahs  \hiberfil.sys
It has nothing to do with other problem! That's for sure
 

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
ACER ASPIRE 5742G
OS
Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
CPU
Intel(R) Core(TM) i3 CPU M 370 @ 2.40GHz
Motherboard
Acer Aspire 5742G
Memory
4,00 GB
Graphics Card(s)
ATI Mobility Radeon HD 5400 Series
Sound Card
(1) AMD High Definition Audio Device (2) Realtek High Defi
Screen Resolution
1366 x 768 x 32 bits (4294967296 colors) @ 60 Hz
Hard Drives
WDC WD5000BEVT-22ZAT0
I would like the option of a 30 second delay w/message for use of an abort, similar to the option available for the shutdown shortcut tutorial. Is this possible with hibernate and how can I do this?

-thx
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
HP (HP-P6212F)
OS
Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
CPU
Pentium(R) Dual-Core CPU E5300 @ 2.60GHz
Motherboard
PEGATRON CORPORATION Benicia
Memory
6.00 GB
Graphics Card(s)
Intel(R) G33/G31 Express Chipset Family
Sound Card
Realtek High Definition Audio
Monitor(s) Displays
24'' HP WS LCD
Screen Resolution
1920 x 1080 x 32 bits (4294967296 colors) @ 60 Hz
Hard Drives
(1) ATA Hitachi HDT72106 SCSI Disk Device (2) Generic- Compact Flash USB Device (3) Generic- MS/MS-Pro USB Device (4) Generic- SD/MMC USB Device (5) Generic- SM/xD-Picture USB Device (6) Verbatim STORE N GO USB Device
Keyboard
Logitech G510s
Mouse
Logitech Trackball M570
Antivirus
Microsoft Security Essentials / Malwarebytes
Browser
IE / Firefox / Chrome
Hey Marc,

You could use the command below to create the shortcut with. Of course, you'll need to have hibernate enabled. :)

shutdown -h -f -t 30 -c "Your message here up to 512 characters"
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self built custom
OS
64-bit Windows 11 Pro for Workstations
CPU
Intel i7-8700K OC'd to 5 GHz
Motherboard
ASUS ROG Maximus XI Formula Z390
Memory
64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz
Graphics Card(s)
ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Sound Card
Integrated
Monitor(s) Displays
2 x Samsung Odyssey G7 27"
Screen Resolution
2560x1440
Hard Drives
1TB Samsung 990 PRO M.2,
4TB Samsung 990 PRO PRO M.2,
TerraMaster F8 SSD Plus NAS
PSU
Seasonic Prime Titanium 850W
Case
Thermaltake Core P3
Cooling
Corsair Hydro H115i
Keyboard
Logitech wireless K800
Mouse
Logitech MX Master 4
Internet Speed
2 Gb/s Download and 100 Mb/s Upload
Antivirus
Malwarebyte Anti-Malware Premium
Browser
Google Chrome
Other Info
Logitech Z625 speaker system,
Logitech BRIO 4K Pro webcam,
HP Color LaserJet Pro MFP M477fdn,
APC SMART-UPS RT 1000 XL - SURT1000XLI,
Galaxy S23 Plus phone
No joy Shawn. Even tried variations on your command such as adding .exe to 'shutdown' and adding the full path such as C:\Windows\System32\... .

All that happens is a quick appearance of a command prompt. No message, no shutdown/hibernate, nada.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
HP (HP-P6212F)
OS
Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
CPU
Pentium(R) Dual-Core CPU E5300 @ 2.60GHz
Motherboard
PEGATRON CORPORATION Benicia
Memory
6.00 GB
Graphics Card(s)
Intel(R) G33/G31 Express Chipset Family
Sound Card
Realtek High Definition Audio
Monitor(s) Displays
24'' HP WS LCD
Screen Resolution
1920 x 1080 x 32 bits (4294967296 colors) @ 60 Hz
Hard Drives
(1) ATA Hitachi HDT72106 SCSI Disk Device (2) Generic- Compact Flash USB Device (3) Generic- MS/MS-Pro USB Device (4) Generic- SD/MMC USB Device (5) Generic- SM/xD-Picture USB Device (6) Verbatim STORE N GO USB Device
Keyboard
Logitech G510s
Mouse
Logitech Trackball M570
Antivirus
Microsoft Security Essentials / Malwarebytes
Browser
IE / Firefox / Chrome
It appears the -h and -t switch can't be used together.

If you like, you could create a .bat file using the command below to effectively do the same.

Code:
@echo off
echo [B][COLOR=#ff0000]Your message here[/COLOR][/B]
timeout /t 30 /nobreak
shutdown -h -f
 
Last edited:

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self built custom
OS
64-bit Windows 11 Pro for Workstations
CPU
Intel i7-8700K OC'd to 5 GHz
Motherboard
ASUS ROG Maximus XI Formula Z390
Memory
64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz
Graphics Card(s)
ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Sound Card
Integrated
Monitor(s) Displays
2 x Samsung Odyssey G7 27"
Screen Resolution
2560x1440
Hard Drives
1TB Samsung 990 PRO M.2,
4TB Samsung 990 PRO PRO M.2,
TerraMaster F8 SSD Plus NAS
PSU
Seasonic Prime Titanium 850W
Case
Thermaltake Core P3
Cooling
Corsair Hydro H115i
Keyboard
Logitech wireless K800
Mouse
Logitech MX Master 4
Internet Speed
2 Gb/s Download and 100 Mb/s Upload
Antivirus
Malwarebyte Anti-Malware Premium
Browser
Google Chrome
Other Info
Logitech Z625 speaker system,
Logitech BRIO 4K Pro webcam,
HP Color LaserJet Pro MFP M477fdn,
APC SMART-UPS RT 1000 XL - SURT1000XLI,
Galaxy S23 Plus phone
^
thx - I will try that in the morning, g'night.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
HP (HP-P6212F)
OS
Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
CPU
Pentium(R) Dual-Core CPU E5300 @ 2.60GHz
Motherboard
PEGATRON CORPORATION Benicia
Memory
6.00 GB
Graphics Card(s)
Intel(R) G33/G31 Express Chipset Family
Sound Card
Realtek High Definition Audio
Monitor(s) Displays
24'' HP WS LCD
Screen Resolution
1920 x 1080 x 32 bits (4294967296 colors) @ 60 Hz
Hard Drives
(1) ATA Hitachi HDT72106 SCSI Disk Device (2) Generic- Compact Flash USB Device (3) Generic- MS/MS-Pro USB Device (4) Generic- SD/MMC USB Device (5) Generic- SM/xD-Picture USB Device (6) Verbatim STORE N GO USB Device
Keyboard
Logitech G510s
Mouse
Logitech Trackball M570
Antivirus
Microsoft Security Essentials / Malwarebytes
Browser
IE / Firefox / Chrome
You're most welcome. Goodnight. :)
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self built custom
OS
64-bit Windows 11 Pro for Workstations
CPU
Intel i7-8700K OC'd to 5 GHz
Motherboard
ASUS ROG Maximus XI Formula Z390
Memory
64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz
Graphics Card(s)
ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Sound Card
Integrated
Monitor(s) Displays
2 x Samsung Odyssey G7 27"
Screen Resolution
2560x1440
Hard Drives
1TB Samsung 990 PRO M.2,
4TB Samsung 990 PRO PRO M.2,
TerraMaster F8 SSD Plus NAS
PSU
Seasonic Prime Titanium 850W
Case
Thermaltake Core P3
Cooling
Corsair Hydro H115i
Keyboard
Logitech wireless K800
Mouse
Logitech MX Master 4
Internet Speed
2 Gb/s Download and 100 Mb/s Upload
Antivirus
Malwarebyte Anti-Malware Premium
Browser
Google Chrome
Other Info
Logitech Z625 speaker system,
Logitech BRIO 4K Pro webcam,
HP Color LaserJet Pro MFP M477fdn,
APC SMART-UPS RT 1000 XL - SURT1000XLI,
Galaxy S23 Plus phone
Shawn, the .bat file works perfectly, thx. This causes the appearance of a command prompt providing a y/n option to abort. This abort option in addition to a countdown display is way cool and I have no need of the message in this case.

However, I would like to control hibernation abort via an alternate route. Attached is a screen shot of a taskbar nested stack which contains my power management choices ('a work in progress'). Basically I am replacing the old windows power gadget with this. The shortcuts shown are as per the tutorials from the forums here. The restart & shutdown have a 30 second delay and I like the default pop-up warning (it would be way cool if the pop-up displayed a countdown, so I will probably be posting a request for this 'enhancement'). I added the abort button for these and would like to stay consistent with the hibernate and have it also recognize the abort button (using this .bat file the abort button does not function). I really like that abort button!

If this proves too complex or not possible I can 86 that abort button as long as I can get that same 'command prompt pop-up with abort y/n, countdown' option for the shutdown and restart. Would this .bat file serve as a template for this?
 

Attachments

  • pwrgr.png
    pwrgr.png
    99.5 KB · Views: 442

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
HP (HP-P6212F)
OS
Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
CPU
Pentium(R) Dual-Core CPU E5300 @ 2.60GHz
Motherboard
PEGATRON CORPORATION Benicia
Memory
6.00 GB
Graphics Card(s)
Intel(R) G33/G31 Express Chipset Family
Sound Card
Realtek High Definition Audio
Monitor(s) Displays
24'' HP WS LCD
Screen Resolution
1920 x 1080 x 32 bits (4294967296 colors) @ 60 Hz
Hard Drives
(1) ATA Hitachi HDT72106 SCSI Disk Device (2) Generic- Compact Flash USB Device (3) Generic- MS/MS-Pro USB Device (4) Generic- SD/MMC USB Device (5) Generic- SM/xD-Picture USB Device (6) Verbatim STORE N GO USB Device
Keyboard
Logitech G510s
Mouse
Logitech Trackball M570
Antivirus
Microsoft Security Essentials / Malwarebytes
Browser
IE / Firefox / Chrome
Back
Top