The reg export command in Windows

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:

  1. The qprocess command in Windows
  2. Qappsrv (query termserver) command in Windows
  3. The quser (query user) command in Windows
  4. The pubprn command and the pushprinterconnections command in Windows
4.2 ★ | 6 Vote

May be interested

  • How to use the option equivalent to the 'ls' command in WindowsHow to use the option equivalent to the 'ls' command in Windows
    the 'ls' command (note ls, not is) is one of the first terminal commands veterans teach to linux beginners.
  • The command reg add in WindowsThe command reg add in Windows
    the reg add command adds new subkeys or entries to the registry.
  • Rem command in WindowsRem command in Windows
    the rem command helps write comments (comments) in a batch file or config.sys.
  • Instructions for using Command PromptInstructions for using Command Prompt
    deep in windows is a command-line world that is obscure. in this article, we will show you how to solve errors and make your computer more secure.
  • Rd command in WindowsRd command in Windows
    the rd command helps delete a directory
  • Cmd command in WindowsCmd command in Windows
    the cmd command starts a new version of the command interpreter, cmd.exe. if used without parameters, cmd will display copyright information and the version of the operating system.
  • How to use the command history function in Command PromptHow to use the command history function in Command Prompt
    command prompt is an extremely familiar command for anyone using windows operating system. besides, a lot of current software also supports the command line to perform actions on the command prompt window, instead of on the screen.
  • The sfc command in WindowsThe sfc command in Windows
    (applies to windows server (semi-annual channel), windows server 2016, windows server 2012 r2, windows server 2012)
  • Reg command copy in WindowsReg command copy in Windows
    to copy an entry to the location specified on the local pc or the remote computer we will use the reg copy command. to learn more about how to use the reg copy command, you can track the syntax, explain the command parameters and the example tipsmake.com has compiled below.
  • Fc command in WindowsFc command in Windows
    the fc command compares two files or a collection of files and displays the differences between them.