Export (0) Print
Expand All
2 out of 2 rated this helpful - Rate this topic

Reg restore

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

Writes saved subkeys and entries back to the registry.

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

Reg restore <KeyName> <FileName>

 

Parameter Description

<KeyName>

Specifies the full path of the subkey to be restored. The restore operation works only with the local computer. The KeyName must include a valid root key. Valid root keys are: HKLM, HKCU, HKCR, HKU, and HKCC.

<FileName>

Specifies the name and path of the file with content to be written into the registry. This file must be created in advance with the reg save operation using a .hiv extension.

/?

Displays help for reg restore at the command prompt.

  • Before editing any registry entries, save the parent subkey with the reg save operation. If the edit fails, restore the original subkey with the reg restore operation.

  • The following table lists the return values for the reg restore operation.

 

Value Description

0

Success

1

Failure

To restore the file named NTRKBkUp.hiv into the key HKLM\Software\Microsoft\ResKit, and overwrite the existing contents of the key, type:

REG RESTORE HKLM\Software\Microsoft\ResKit NTRKBkUp.hiv

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.