Reg export

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

Copies the specified subkeys, entries, and values of the local computer into a file for transfer to other servers.

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

Syntax

Reg export KeyName FileName [/y]
Parameters

 

Parameter Description

<KeyName>

Specifies the full path of the subkey. The export 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 to be created during the operation. The file must have a .reg extension.

/y

Overwrites any existing file with the name FileName without prompting for confirmation.

/?

Displays help for reg export at the command prompt.

Remarks

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

 

Value Description

0

Success

1

Failure

Examples

To export the contents of all subkeys and values of the key MyApp to the file AppBkUp.reg, type:

reg export HKLM\Software\MyCo\MyApp AppBkUp.reg
Additional references

Command-Line Syntax Key

Tags :


Community Content

haijie.zhao
Problem with Reg export
Hi, I want to use<div>reg export</div><div>to export the registry.</div><div>I found when I tried to export the entire HKEY_LOCAL_MACHINE. some of the registry setting are missing. if I just export HKEY_LOCAL_MACHINE\Software, then everything is fine, all the setting is in exported file.</div><div><br /></div><div>Anybody know why this happens? Is Reg Export only working with subkey?</div>
Tags :

Shalin_Nijel
Append to exported dump file
Is it possible to run reg export and instead of overwriting the previous file, append to it?<div><br /></div><div>for example:</div><div><br /></div><div>reg export /s keyname1 filename </div><div><br /></div><div>would create a file with keyname1 and all subkeys in it...</div><div>Now,</div><div><br /></div><div>is it possible to do </div><div><br /></div><div>reg export /s keyname2 filename</div><div><br /></div><div>and have the new content appended to the end of the file...</div><div><br /></div><div>Thanks in advance...</div>
Tags : export reg append

Drewfus
Feature Request: Format switch with text option
<p>'Reg export' could do with a format switch.<br /><br />Features like Regedit's save as text format should be available in reg.exe. Saving as text in Regedit creates a file with registry key <strong>timestamps</strong> included. Why can't reg.exe do this too?<br /><br />Suggest:<br /><br /></p> <pre>Reg export KeyName FileName [/fo List,Reg] [/y]<br /></pre> <p> <br />Where 'List' is equivalent to Save as Text in Regedit and 'Reg' is standard .reg format.<br /></p>
Tags : contentbug

Page view tracker