PackageDeployment Module Help

Package Deployment Module

Dismount-Registry Cmdlet

Version 2.1.0.0

Dismount-Registry

Synopsis

Unload Registry Hive

Syntax

Dismount-Registry [-KeyPath] <String> [[-Context] <String>] [-ContinueOnError] [<CommonParameters>]

Description

Unloads a registry key which was previously loaded via the RegLoadKey command. This also disconnects the loaded file.
The command must not be used to delete a registry key. For this purpose there is a separate command RegDeleteKey.

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

-KeyPath <String>

Click to browse and to select the registry key you want to unload (including all subkeys).

Required

True

Position

0

Accepts pipeline input

False

<CommonParameters>

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