The command reg import and reg load in Windows

Reg import command

The reg import command helps to copy the contents of the file containing the subkey, entry and register value to the local computer's registry.To learn more about how to use this command, see the example section below.

Syntax reg import command

 Reg import FileName 

Parameter reg import command

Parameters

Describe

Specify the name and path of the file whose content will be copied to the local computer's registry.This file must be created before using the reg export command.

/?

Show help at thecommand prompt.

Generate reg import command

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

Value

Meaning

0

Success

first

Failure

For example, the reg import command

To enter registry entries from a file called AppBkUp.reg, type:

 reg import AppBkUp.reg 

Reg load command

The reg load command helps to write subkeys and entries to another subkey in the registry.Intended to be used as temporary files to troubleshoot or edit registry entries.To learn more about how to use this command, see the example section below.

Syntax reg load command

 reg load KeyName FileName 

Reg load command parameter

Parameters

Describe

Specify the full path of the subkey to be downloaded.To specify a remote computer, attach the computer name (in the format) as part of the KeyName parameter.In addition, parameter KeyName1 must also include a valid root key.Valid root keys for local computers are: HKLM, HKCU, HKCR, HKU and HKCC.If the remote computer is specified, valid root keys will be HKLM and HKU.

Specify the name and path of the file to download.This file must be pre-created using the reg save command and the extension is .hiv.

/?

Show help at thecommand prompt.

Reg load statement

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

Value

Meaning

0

Success

first

Failure

Reg load command example

To download the file named TempHive.hiv into the HKLM TempHive key, enter:

 REG LOAD HKLMTempHive TempHive.hiv 

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
  • ncG1vNJzZmismaXArq3KnmWcp51kwamxjJympqWRo7FuvsSgZKKloKS%2FtXnAp5tmqpWceq27wJ1koqZdrLavsM6wqg%3D%3D