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
You should read it
- Secedit: import command in Windows
- Reg unload command in Windows
- The bootcfg raw command in Windows
- Del command in Windows
- Set command in Windows
- Cmd command in Windows
- Command at in Windows
- Fc command in Windows
- Reg command copy in Windows
- The echo command in Windows
- The command reg add in Windows
- Rem command in Windows
Maybe you are interested
How to use the file search command on Windows, find saved files
Why is tldr command better than man command in Linux?
Should I use PowerShell or Command Prompt?
What to do when open command window here does not appear?
How to switch users on the Linux command line
How to fix Mac Homebrew error 'zsh: command not found: brew'