Edit

Share via


Export-ProvisioningPackage

Extract the contents of a provisioning package.

Syntax

Id

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

Path

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

Metadata

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.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False
Aliases:Force, Overwrite

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-AnswerFileOnly

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

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-ConnectedDevice

Indicates that the provisioning package uses a connected device.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False
Aliases:Device

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-LogsDirectoryPath

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

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False
Aliases:Logs

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-OutputFolder

Specifies the path to the output directory.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False
Aliases:Out

Parameter sets

(All)
Position:1
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-PackageId

Specifies the ID of the Package to be extracted.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False
Aliases:Id

Parameter sets

Id
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-PackagePath

Specifies the path to the package to be extracted.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False
Aliases:Path

Parameter sets

Path
Position:0
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-RuntimeMetadata

Specifies a runtime provisioning package metadata object.

Parameter properties

Type:RuntimeProvPackageMetadata
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

Metadata
Position:0
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

-WprpFile

Specifies the name of a WPR profile file.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False
Aliases:Wprp

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

Inputs

Microsoft.Windows.Provisioning.ProvCommon.RuntimeProvPackageMetadata

Outputs

Object