PackageDeployment Module Help

Package Deployment Module

Import-Registry Cmdlet

Version 2.1.0.0

Import-Registry

Synopsis

Extend the Registry

Syntax

Import-Registry [-FilePath] <String> [[-Context] <String>] [-ContinueOnError] [-Wow64] [<CommonParameters>]

Description

Use this command to extend the registry by the REG or NIR file specified in the Register file text box. Updates existing entries in the registry.
The REG file must be available in the correct format.(If you specify a invalid REG file, you will not get an error message when executing the installation package.)
REG files and NIR files: The default file name extension for registry extension files is REG. With Ivanti DSM, however, the file name extension is changed to NIR because Ivanti DSM uses variables in the registry extension files; the syntax of NIR and REG files is identical.
Changing the file name extension prevents the user from accidentally extending the registry by double-clicking a REG file in the Explorer. This would seriously damage the registry because the variables in the REG files are not transformed to their actual values.
In case an error occurs when running this command, you can specify the option Stop script on error in the Script Editor. If the error actually occurs, the script stops, thus preventing subsequent errors, and the associated policy is shown as not compliant.This also applies if you set the package property Error handling to Always terminate script on error (a default setting for new packages).

Parameters

-Context <String>

User: Execution under user account; logging in HKEY_CURRENT_USER, i.e. for the user.
UserPerService: User-related command, execution in Service context.
Computer: Execution under user account; logging in HKEY_CURRENT_MACHINE, i.e. for the computer.
ComputerPerService: Execution in service context; logging in HKEY_LOCAL_MACHINE, i.e. for the computer.

Required

False

Position

1

Accepts pipeline input

False

-ContinueOnError <SwitchParameter>

Continues script execution in spite of errors in the respective command

Required

False

Position

Named

Accepts pipeline input

False

-FilePath <String>

RegistryFile.

Required

True

Position

0

Accepts pipeline input

False

-Wow64 <SwitchParameter>

Use WOW64 on x64 computers.

Required

False

Position

Named

Accepts pipeline input

False

<CommonParameters>

For more information about common parameters, type "Get-Help about_CommonParameters".