Get-Provisioning Package

Gets information about the installed provisioning package.

Syntax

Get-ProvisioningPackage
   [-PackageId] <String>
   [-LogsDirectoryPath <String>]
   [-WprpFile <String>]
   [-ConnectedDevice]
Get-ProvisioningPackage
   [-PackagePath] <String>
   [-LogsDirectoryPath <String>]
   [-WprpFile <String>]
   [-ConnectedDevice]
Get-ProvisioningPackage
   [-AllInstalledPackages]
   [-LogsDirectoryPath <String>]
   [-WprpFile <String>]
   [-ConnectedDevice]

Description

The Get-ProvisioningPackage cmdlet gets information about the installed provisioning package.

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

Examples

Example 1

PS C:\> Get-ProvisioningPackage -PackagePath c:\test\testppkg.ppkg

This command gets information about the testppkg.ppkg provisioning package.

Parameters

-AllInstalledPackages

Gets all the installed packages information.

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

-ConnectedDevice

Gets the connected device information.

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

-LogsDirectoryPath

Specifies the logs directory path.

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

-PackageId

Specifies the Id of a package.

Type: String
Aliases: Id
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-PackagePath

Specifies the package path.

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

-WprpFile

Specifies the name of a WPR profile file.

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

Inputs

None

Outputs

Object