Microsoft KB Archive/293399

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

Article ID: 293399

Article Last Modified on 10/31/2006

-

APPLIES TO


 * Microsoft Windows 2000 Service Pack 1
 * Microsoft Windows 2000 Advanced Server
 * Microsoft Windows 2000 Service Pack 1

-



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:  Install Windows 2000 on a test computer. This installation can either be completed manually or unattended. 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. Using the Regedit.exe tool, locate the following registry key:

 Click the Power key. On the Registry menu, click Export Registry File, and then save this file as Hiber.reg.

 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. 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: <ol style="list-style-type: lower-alpha;"> 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

</li> Locate the root folder.</li> Copy the target file with the copy hiberfil.sys hiberfil.cop command.</li> Exit the Recovery Console and restart the computer.</li></ol> </li> 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.</li>  Add the following section to your Unattend Answer file: [GuiRunOnce] Command0=&quot;regedit /s \hiber.reg&quot; Command1=&quot;cmd /c copy \hiberfil.cop c:\hiberfil.sys&quot; Command2=&quot;cmd /c attrib +S +H +A C:\hiberfil.sys&quot; 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=&quot;powercfg /HIBERNATE ON&quot; </li></ol>

Note Windows 2000 Server with Terminal Services installed cannot enter the Hibernate mode.

<div class="references_section">