Friday, 16 August 2013

Enable Hibernation and Sleep in Windows Server 2008 R2

  Method 1

To make hibernation unavailable, follow these steps:

  1. Click Start, and then type cmd in the Start Search box.
  2. In the search results list, right-click Command Prompt, and then click Run as Administrator.
  3. When you are prompted by User Account Control, click Continue.
  4. At the command prompt, type powercfg.exe /hibernate off, and then press Enter.
  5. Type exit, and then press Enter to close the Command Prompt window.
To make hibernation available, follow these steps:
  1. Click Start, and then type cmd in the Start Search box.
  2. In the search results list, right-click Command Prompt, and then click Run as Administrator.
  3. When you are prompted by User Account Control, click Continue.
  4. At the command prompt, type powercfg.exe /hibernate on, and then press Enter.
  5. Type exit, and then press Enter to close the Command Prompt window

 

Method 2

Simple as can be…I hope this comes in handy for those who haven’t surfed enough to figure it out yet:
  • Right click on an empty area on your desktop.
  • Select New>Shortcut.
  • In the first box of the Create Shortcut Wizard, type
%windir%\System32\rundll32.exe powrprof.dll,SetSuspendState Standby
  • Click Next
  • Call the shortcut something like “Standby” (without quotes) and click Finish
  • To add the finishing touch, right click on this new icon, select Properties, click the Change Icon button and select an appropriate icon.

 

 Method 3

Enable Hibernation and Sleep in Windows Server 2008 R2 when install Hyper-V Roll 

Normally when you install Hyper-V role in your server, it will disable sleep and hibernate facilities provided by Windows.
But you can avoid this by doing some alterations to Windows.
Hibernate and seep features are disabled when the Hyper-V service is started, so you can regain hibernate and sleep by changing the start parameter of the Hyper-V service (hvboot).
To change,
1. Open the registry editor by typing “regedit” in the run window.
Locate the key,
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\hvboot and then set the start value of it to 3.
Start property can hold the following values.
0
Boot (Not supported by hvboot.)
1
System
2
Auto
3
On Demand
4
Disabled
Now you will have the hibernate and sleep facilities until you start the Hyper-V services in your machine.
2. Type the following command in a command prompt window with administrative rights.
sc config hvboot start= demand
Note that there needs to be a space between the = sign and the word demand

No comments:

Post a Comment