Hibernate Once/Resume Many (HORM) (Standard 8)

7/8/2014

Review the Hibernate Once/Resume Many (HORM) feature of the Unified Write Filter (UWF) for Windows Embedded 8 Standard (Standard 8).

You can use Hibernate Once/Resume Many (HORM) with Unified Write Filter (UWF) to start your device in a preconfigured state. When HORM is enabled, your system always resumes and restarts from the last saved hibernation file (hiberfil.sys).

A device with HORM enabled can quickly be turned off or shut down, and then restarted into the preconfigured state, even in the event of a sudden power loss.

Note

HORM cannot be used on a Unified Extensible Firmware Interface (UEFI) device. The installation procedure for UEFI always creates a hidden system partition and Unified Write Filter (UWF) cannot protect hidden partitions. Since HORM requires all fixed partitions to be protected, you cannot use HORM on any devices that contain a hidden partition, including UEFI-capable devices.

UWF Configuration

UWF must be enabled before you can enable or disable HORM. UWF must be configured in the following ways to protect the hibernation file from becoming invalid:

  • All fixed volumes that are mounted on the system must be protected by UWF.
  • Your system must not have any file, folder, or registry exclusions configured for UWF.
  • The UWF overlay must be configured to use RAM mode. HORM does not support disk-backed overlays.

UWF does not filter hibernation files from being written to disk. If you want to protect the preconfigured state of your device, lock down any functionality that can modify the hibernation file. For example, disable Hibersleep, Hibernation, and Hiberboot on your device for regular user accounts so that the saved hibernation file is not overwritten when entering a sleep, hibernate, or shutdown state.

To configure HORM for a Standard 8 system

In this procedure, you will configure Hibernate Once/Resume Many (HORM) for a Standard 8 system.

  1. On the embedded device, open a command prompt as an administrator. For Windows Shell, to open a command prompt, do the following:

    1. In File Explorer, navigate to \Windows\System32, right-click cmd.exe, and then click Run as Administrator.
    2. Accept the UAC prompt.
  2. To enable hibernation on your device, type the following command:

    powercfg /h on
    
  3. To enable UWF on your device, type the following command:

    uwfmgr.exe filter enable
    
  4. To protect all volumes on your device, type the following command:

    uwfmgr.exe volume protect all
    

    Note

    DVD RW and floppy drives throw an expected error that can be safely ignored.

  5. To restart your device to enable UWF, type the following command:

    shutdown /r/t 0
    
  6. After the device restarts, to verify the UWF changes that you made on your device, type the following command:

    uwfmgr.exe get-config
    
  7. To enable hibernation on your device, type the following command:

    powercfg /h on
    
  8. To enable HORM on your device, type the following command:

    uwfmgr.exe filter enable-horm
    

    Note

    Remove all file and registry exclusions before you enable HORM.

  9. (Optional) In Control Panel, set the Power Option When I press the power button to avoid displaying the Command Prompt when resuming from hibernation, or use a script to close the command prompt on startup.

  10. To hibernate the system one time to create an initial hibernation file, at the command prompt, type the following command:

    shutdown /h
    
  11. Press the power button to wake the system from hibernation.

  12. After the system starts from hibernation to create an initial hibernation file, to shut down and restart the system, type the following command:

    shutdown /r /t 0
    
  13. When HORM is enabled, you cannot change the UWF configuration. To make changes, you must first disable HORM. To disable HORM, type the following command:

    uwfmgr.exe filter disable-horm
    
  14. To restart the system to finish disabling HORM, type the following command:

    shutdown /r /t 0
    

    The system will restart normally with HORM disabled.

Warning

Do not uninstall UWF when the filter is enabled or when HORM is enabled, either online or offline by using Windows PE 4.0.

HORM Disable Recovery Procedure

If you cannot disable HORM on your device, use following recovery procedure:

  1. Start your device in Windows PE.

  2. Type the following command:

    bcdedit.exe /set {bootmgr} custom:26000024 0
    
  3. Restart the device:

    shutdown /r/t 0
    
  4. Disable HORM:

    uwfmgr.exe filter disable-horm
    
  5. Enable HORM:

    uwfmgr.exe filter enable-horm
    
  6. Hibernate the device:

    shutdown /h
    

See Also

Concepts

Unified Write Filter (UWF) Overview