How to manually enable the Hibernate feature during an unattended installation of Windows 2000 (293399)



The information in this article applies to:

  • Microsoft Windows 2000 Server SP1
  • Microsoft Windows 2000 Advanced Server SP1
  • Microsoft Windows 2000 Professional SP1

This article was previously published under Q293399
Important This article contains information about how to modify the registry. Make sure to back up the registry before you modify it. Make sure that you know how to restore the registry if a problem occurs. For information about how to back up, restore, and modify the registry, click the following article number to view the article in the Microsoft Knowledge Base:

256986 Description of the Microsoft Windows registry

SUMMARY

This article describes how to enable the Hibernate feature during an unattended installation of Windows 2000.

MORE INFORMATION

Warning Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using another method. These problems might require that you reinstall your operating system. Microsoft cannot guarantee that these problems can be solved. Modify the registry at your own risk.

There are no parameters you can set in the Unattend Answer file that can instruct Windows to enable the Hibernate feature during initial installation.

To work around this behavior, follow these steps:
  1. Install Windows 2000 on a test computer. This installation can either be completed manually or unattended.
  2. Enable the Hibernate feature by means of the graphical user interface (GUI). In Control Panel, double-click Power Options, and then click the Hibernate tab. Click to select the Enable Hibernate Support check box.
  3. Using the Regedit.exe tool, locate the following registry key:

    HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\Power

  4. Click the Power key. On the Registry menu, click Export Registry File, and then save this file as Hiber.reg.
  5. The preceding key contains several values. The only value you want is the Heuristics value. Right-click the Hiber.reg file, and then click Edit. You can edit the registry file to remove any other entries. The Heuristics value only exists when the Hibernate feature is enabled.
  6. The Hiberfil.sys hidden file is also added to the root of your hard disk. This file only exists after the Hibernate feature is enabled. This file cannot be copied in Windows as the file is in use by the computer. To work around this behavior:
    1. When the Hibernate feature is enabled, restart the computer, and then use the Recovery Console. For more information about the Recovery Console, click the following article number to view the article in the Microsoft Knowledge Base:

      229716 Description of the Windows 2000 Recovery Console

    2. Locate the root folder.
    3. Copy the target file with the copy hiberfil.sys hiberfil.cop command.
    4. Exit the Recovery Console and restart the computer.
  7. Copy the Hiber.reg and Hiberfil.cop files to a location that is accessible during the unattended installation. This location may be a CD-ROM, a network share, or another partition on your target computer.

    Note The Hiberfil.sys file may be several hundred megabytes. Therefore, you cannot copy this file to a floppy disk.
  8. Add the following section to your Unattend Answer file:
    [GuiRunOnce]
     Command0="regedit /s <path>\hiber.reg"
     Command1="cmd /c copy <path>\hiberfil.cop c:\hiberfil.sys"
     Command2="cmd /c attrib +S +H +A C:\hiberfil.sys"
    						
    The Hibernate feature is enabled when you restart the computer.

    Note On a computer that is running Microsoft Windows XP with Service Pack 2, add the following section to your Unattend Answer file instead:
    [GuiRunOnce] Command0="powercfg /HIBERNATE ON"
Note Windows 2000 Server with Terminal Services installed cannot enter the Hibernate mode.

REFERENCES

For more information, click the following article number to view the article in the Microsoft Knowledge Base:

237551 Advanced power management features are disabled with Terminal Services


Modification Type:MinorLast Reviewed:1/27/2006
Keywords:kbenv kbHOWTOmaster KB293399 kbAudITPro