編輯

共用方式為


Install-ProvisioningPackage

Install .PPKG package onto the local machine.

Syntax

Install-ProvisioningPackage
       [-PackagePath] <String>
       [-ForceInstall]
       [-QuietInstall]
       [-LogsDirectoryPath <String>]
       [-WprpFile <String>]
       [-ConnectedDevice]
       [<CommonParameters>]

Description

This cmdlet is used to install .ppkg files that are generated and exported by the Windows Configuration Designer tool.

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

You can use this cmdlet to install a .ppkg file interactively or silently by specifying the -QuietInstall switch parameter.

The default is an interactive install.

Examples

Example 1

PS C:\> Install-ProvisioningPackage -PackagePath C:\mypackage.ppkg -QuietInstall

This will install the mypackage.ppkg file silently without customer interaction.

Parameters

-ConnectedDevice

Install package to removable media.

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

-ForceInstall

Force the installation of the package.

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

-LogsDirectoryPath

Specifies the logs directory path.

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

-PackagePath

Path to provisioning package

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

-QuietInstall

Quietly installs the package without any customer interaction.

Type:SwitchParameter
Aliases:Quiet
Position:Named
Default value:None
Required:False
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
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

None

Outputs

Object