Export-ProvisioningPackage

Extract the contents of a provisioning package.

Syntax

Export-ProvisioningPackage
      -PackageId <String>
      [-OutputFolder] <String>
      [-AllowClobber]
      [-AnswerFileOnly]
      [-LogsDirectoryPath <String>]
      [-WprpFile <String>]
      [-ConnectedDevice]
Export-ProvisioningPackage
      [-PackagePath] <String>
      [-OutputFolder] <String>
      [-AllowClobber]
      [-AnswerFileOnly]
      [-LogsDirectoryPath <String>]
      [-WprpFile <String>]
      [-ConnectedDevice]
Export-ProvisioningPackage
      [-RuntimeMetadata] <RuntimeProvPackageMetadata>
      [-OutputFolder] <String>
      [-AllowClobber]
      [-AnswerFileOnly]
      [-LogsDirectoryPath <String>]
      [-WprpFile <String>]
      [-ConnectedDevice]

Description

Extract the contents of a provisioning package to the specified folder.

The Export-ProvisioningPackage cmdlet is supported on Windows 11 client operating system only.

Examples

Example 1

PS C:\> Export-ProvisioningPackage -PackageId {e2ea11f5-d8b0-4db9-bf96-8c909dc2fed5} -OutputFolder D:\Package

This example extracts the content of a Package specifying it's PackageId to the specified folder.

Parameters

-AllowClobber

Indicates that the cmdlet exports contents even if there's an existing instance.

Type:SwitchParameter
Aliases:Force, Overwrite
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-AnswerFileOnly

Indicates that the cmdlet only exports the Windows provisioning answer file.

Type:SwitchParameter
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-ConnectedDevice

Indicates that the provisioning package uses a connected device.

Type:SwitchParameter
Aliases:Device
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-LogsDirectoryPath

Specifies a path to store logs files resulting from the export operation.

Type:String
Aliases:Logs
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-OutputFolder

Specifies the path to the output directory.

Type:String
Aliases:Out
Position:1
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-PackageId

Specifies the ID of the Package to be extracted.

Type:String
Aliases:Id
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-PackagePath

Specifies the path to the package to be extracted.

Type:String
Aliases:Path
Position:0
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-RuntimeMetadata

Specifies a runtime provisioning package metadata object.

Type:RuntimeProvPackageMetadata
Position:0
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-WprpFile

Specifies the name of a WPR profile file.

Type:String
Aliases:Wprp
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

Microsoft.Windows.Provisioning.ProvCommon.RuntimeProvPackageMetadata

Outputs

Object