Skip to content

SnapIn element (Powershell extension)

Identifies the parent File as a PowerShell snap-in to be registered on the system.

Attributes

CustomSnapInType

string

The full type name of a class that is used to register a list of cmdlets and providers.

Description

string

A brief description of the snap-in.

DescriptionIndirect

EmbeddedResource

An embedded resource that contains a brief description of the snap-in. This resource must be embedded in the current snap-in assembly.

Id

string required

The identifier for this PowerShell snap-in.

RequiredPowerShellVersion

wxs:VersionType

The required version of PowerShell that must be installed and is associated with the snap-in registration. The default value is “1.0”.

Vendor

string

The name of the snap-in vendor.

VendorIndirect

EmbeddedResource

An embedded resource that contains the name of the snap-in vendor. This resource must be embedded in the current snap-in assembly.

Version

wxs:VersionType

The version of the snapin. If not specified, this is taken from the assembly name.

Children

Parents

Remarks

PowerShell snap-ins allow developers to extend the functionality of of the PowerShell engine. Add this element to identify the parent File as a PowerShell snap-in that will get registered on the system.