reg load

Applies To: Windows Server (Semi-Annual Channel), Windows Server 2016, Windows Server 2012 R2, Windows Server 2012

Writes saved subkeys and entries into a different subkey in the registry. Intended for use with temporary files that are used for troubleshooting or editing registry entries.

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


reg load KeyName FileName


Parameter Description
<KeyName> Specifies the full path of the subkey to be loaded. 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.
<FileName> Specifies the name and path of the file to be loaded. This file must be created in advance by using the reg save operation and a .hiv extension.
/? Displays help for reg load at the command prompt.


The following table lists the return values for the reg load operation.

Value Description
0 Success
1 Failure


To load the file named to the key HKLM\TempHive, type:


Additional references

Command-Line Syntax Key