Uninstall-ProvisioningPackage
Uninstalls .PPKG package from the local machine.
Syntax
Id
Uninstall-ProvisioningPackage
[-PackageId] <String>
[-LogsDirectoryPath <String>]
[-WprpFile <String>]
[-ConnectedDevice]
Path
Uninstall-ProvisioningPackage
-PackagePath <String>
[-LogsDirectoryPath <String>]
[-WprpFile <String>]
[-ConnectedDevice]
Installed
Uninstall-ProvisioningPackage
[-AllInstalledPackages]
[-LogsDirectoryPath <String>]
[-WprpFile <String>]
[-ConnectedDevice]
Uninstall-ProvisioningPackage
[-RuntimeMetadata] <RuntimeProvPackageMetadata>
[-LogsDirectoryPath <String>]
[-WprpFile <String>]
[-ConnectedDevice]
Description
Unintalls .PPKG package based on package ID, path, metadata, or all packages.
The Uninstall-ProvisioningPackage cmdlet is supported on Windows 11 client operating system only.
Examples
Example 1: Uninstall all provisioning packages
PS C:\> Uninstall-ProvisioningPackage -AllInstalledPackages
Uninstalls all provisioning packages.
Parameters
-AllInstalledPackages
Removes all installed packages.
Parameter properties
| Type: | SwitchParameter
|
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
| Aliases: | All |
Parameter sets
Installed
| Position: | Named |
| Mandatory: | True |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
-ConnectedDevice
If enabled, specifies that the device type is mobile.
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 the logs directory path.
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 |
-PackageId
Specifies the ID of a package.
Parameter properties
| Type: | String
|
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
| Aliases: | Id |
Parameter sets
Id
| Position: | 0 |
| Mandatory: | True |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
-PackagePath
Specifies the package path.
Parameter properties
| Type: | String
|
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
| Aliases: | Path |
Parameter sets
Path
| Position: | Named |
| Mandatory: | True |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
Specifies a runtime provisioning package metadata object.
| Type: | RuntimeProvPackageMetadata
|
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Metadata
| Position: | 0 |
| Mandatory: | True |
| Value from pipeline: | True |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
-WprpFile
Specifies the location of the 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 |
Microsoft.Windows.Provisioning.ProvCommon.RuntimeProvPackageMetadata
Outputs