Reg unload

Updated: April 17, 2012

Applies To: Windows 7, Windows Server 2000, Windows Server 2003, Windows Server 2003 R2, Windows Server 2008, Windows Server 2008 R2, Windows Vista, Windows XP

Removes a section of the registry that was loaded using the reg load operation.

For examples of how to use this command, see Examples.


reg unload <KeyName>


Parameter Description


Specifies the full path of the subkey to be unloaded. For specifying remote computers, include the computer name (in the format \\ComputerName\) as part of the KeyName. Omitting \\ComputerName\ causes the operation to default to the local computer. The KeyName must include a valid root key. Valid root keys for the local computer are HKLM, HKCU, HKCR, HKU, and HKCC. If a remote computer is specified, valid root keys are HKLM and HKU.


Displays help for reg unload at the command prompt.


The following table lists the return values for the reg unload option.

Value Description






To unload the hive TempHive in the file HKLM, type:



Do not edit the registry directly unless you have no alternative. The registry editor bypasses standard safeguards, allowing settings that can degrade performance, damage your system, or even require you to reinstall Windows. You can safely alter most registry settings by using the programs in Control Panel or Microsoft Management Console (MMC). If you must edit the registry directly, back it up first.

Additional references

Command-Line Syntax Key