--- title: PowerShell cmdlets for provisioning packages in Windows description: Learn more about the Windows PowerShell cmdlets that you can use with Provisioning packages on Windows devices. ms.topic: conceptual ms.date: 07/09/2024 --- # PowerShell cmdlets for provisioning Windows client Windows client includes Provisioning PowerShell cmdlets. These cmdlets make it easy to script the following functions. - **Add-ProvisioningPackage**: Applies a provisioning package. Syntax: - `Add-ProvisioningPackage [-Path] [-ForceInstall] [-LogsFolder ] [-QuietInstall] [-WprpFile ] []` - **Remove-ProvisioningPackage**: Removes a provisioning package. Syntax: - `Remove-ProvisioningPackage -PackageId [-LogsFolder ] [-WprpFile ] []` - `Remove-ProvisioningPackage -Path [-LogsFolder ] [-WprpFile ] []` - `Remove-ProvisioningPackage -AllInstalledPackages [-LogsFolder ] [-WprpFile ] []` - **Get-ProvisioningPackage**: Gets information about an installed provisioning package. Syntax: - `Get-ProvisioningPackage -PackageId [-LogsFolder ] [-WprpFile ] []` - `Get-ProvisioningPackage -Path [-LogsFolder ] [-WprpFile ] []` - `Get-ProvisioningPackage -AllInstalledPackages [-LogsFolder ] [-WprpFile ] []` - **Export-ProvisioningPackage**: Extracts the contents of a provisioning package. Syntax: - `Export-ProvisioningPackage -PackageId -OutputFolder [-Overwrite] [-AnswerFileOnly] [-LogsFolder ] [-WprpFile ] []` - `Export-ProvisioningPackage -Path -OutputFolder [-Overwrite] [-AnswerFileOnly] [-LogsFolder ] [-WprpFile ] []` - **Install-TrustedProvisioningCertificate**: Adds a certificate to the Trusted Certificate store. Syntax: - `Install-TrustedProvisioningCertificate ` - **Get-TrustedProvisioningCertificate**: Lists all installed trusted provisioning certificates. Use this cmdlet to get the certificate thumbprint to use with the `Uninstall-TrustedProvisioningCertificate` cmdlet. Syntax: - `Get-TrustedProvisioningCertificate` - **Uninstall-TrustedProvisioningCertificate**: Removes a previously installed provisioning certificate. Syntax: - `Uninstall-TrustedProvisioningCertificate ` > [!NOTE] > You can use Get-Help to get usage help on any command. For example: `Get-Help Add-ProvisioningPackage` Trace logs are captured when using cmdlets. The following logs are available in the logs folder after the cmdlet completes: - ProvTrace.<timestamp>.ETL - ETL trace file, unfiltered - ProvTrace.<timestamp>.XML - ETL trace file converted into raw trace events, unfiltered - ProvTrace.<timestamp>.TXT - TEXT file containing trace output formatted for easy reading, filtered to only show events logged by providers in the WPRP file - ProvLogReport.<timestamp>.XLS - Excel file containing trace output, filtered to only show events logged by providers in WPRP file > [!NOTE] > When applying provisioning packages using Powershell cmdlets, the default behavior is to suppress the prompt that appears when applying an unsigned provisioning package. This is by design so that provisioning packages can be applied as part of existing scripts.