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

Article translations Article translations
Article ID: 293399 - View products that this article applies to.
This article was previously published under Q293399
Expand all | Collapse all

SUMMARY

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

MORE INFORMATION

Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base:
322756 How to back up and restore the registry in Windows


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

Properties

Article ID: 293399 - Last Review: October 31, 2006 - Revision: 4.3
APPLIES TO
  • Microsoft Windows 2000 Service Pack 1
  • Microsoft Windows 2000 Advanced Server
  • Microsoft Windows 2000 Service Pack 1
Keywords: 
kbenv kbhowtomaster KB293399

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com