TipsMake

The reg export command in Windows

The reg export command copies the specified subkeys, entries and values ​​of the local computer to export to other servers

The reg expor t command helps copy the subkey, entry and specified values ​​of the local computer to a file for export to other servers.To learn more about how to use this command, see the example section below.

The syntax of the export reg command

 Reg export KeyName FileName [/ y] 

The parameter export command reg

Parameters

Describe

 

Specify the full path of the subkey.The file export operation contains a subkey that only works on the local computer.The KeyName parameter must include a valid root key.Valid root keys are: HKLM, HKCU, HKCR, HKU and HKCC.

 

Specify the name and path of the file created during file export.The file must have an extension of .reg.

/ y

Overwrite any file named FileName available on the system without prompting to confirm.

/?

Show help at thecommand prompt.

Note the reg export command

The following table lists the return values ​​for the reg export command :

Value

Meaning

0

Success

first

Failure

Example of the reg export command

To export the contents of all subkeys and the value of the key named MyApp to the AppBkUp.reg file, enter:

 reg export HKLMSoftwareMyCoMyApp AppBkUp.reg 

See more:

  • The qprocess command in Windows
  • Qappsrv (query termserver) command in Windows
  • The quser (query user) command in Windows
  • The pubprn command and the pushprinterconnections command in Windows

Discover more

Kareem Winters

Share by

Kareem Winters
Update 26 May 2019