Share via


Reg import

 

Applies To: Windows Server 2003, Windows Vista, Windows XP, Windows Server 2008, Windows 7, Windows Server 2003 R2, Windows Server 2008 R2, Windows Server 2000, Windows Server 2012, Windows 8

Copies the contents of a file that contains exported registry subkeys, entries, and values into the registry of the local computer.

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

Syntax

Reg import FileName

Parameters

Parameter

Description

<FileName>

Specifies the name and path of the file that has content to be copied into the registry of the local computer. This file must be created in advance by using reg export.

/?

Displays help for reg import at the command prompt.

Remarks

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

Value

Description

0

Success

1

Failure

Examples

To import registry entries from the file named AppBkUp.reg, type:

reg import AppBkUp.reg

Additional references

Command-Line Syntax Key