How To Enable Hibernation On Multiple Computers

Windows provides a command line tool to enable hibernation on computers. There are no Group Policy Power Configuration Settings available natively to configure Hibernation for domain members. You must use a custom ADM file or a small script which can be executed from a remote computer to enable hibernation. The tool name is PowerCFG.exe. This can be used to enable hibernation but there is no remote support available with this tool. You might need to use a tool which can execute the command on remote computers to enable hibernation. We will be using Psexec.exe to execute Powercfg.exe remotely.  

Method 1


  1. Create a text file; Comps.txt
  2. Put all the computer names in it.
  3. Next, copy the following lines in a file and save it as EnableH.CMD
  • REM ***START HERE***
  • Echo Off
  • Setlocal EnableDelayedExpansion
  • FOR /F "Tokens=*" %%L IN (Comps.txt) DO (
  •    SET CompName=
  •    SET CompName=%%L
  •    psexec.exe \\!CompName! C:\Windows\System32\Powercfg.exe /hibernate ON
  • )
  • REM ***END HERE***

The EnableH.CMD will enable the Hibernation on all the computers mentioned in the Comps.txt. You can download the Psexec.exe from here:

Method 2

The second method you can use to enable Hibernation on all the computers via Group Policy. This is what you need to do:


  • Create a file and save it as EnableH.CMD
  • Paste the below lines in it and copy it to the NetLogon share
  • REM ***START HERE***
  • Echo Off 
  • C:\Windows\System32\PowerCfg.exe /hibernate ON
  • REM ***END HERE***
  • Configure EnableH.CMD as the Startup Script in Group Policy.

Note: The Group Policy Settings for Power Configuration is available in Windows Server 2008 and Windows 7. The above methods can be used if you are still running Windows Server 2003 and Windows XP Client computers in your environment. 

About The Author

Leave a Comment

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Scroll to Top