4.1 KiB
title, description, ms.prod, ms.mktglfcycl, ms.sitesec, author, localizationpriority
title | description | ms.prod | ms.mktglfcycl | ms.sitesec | author | localizationpriority |
---|---|---|---|---|---|---|
provisioning powershell (Windows 10) | w10 | deploy | library | jdeckerMS | high |
provisioning powershell
Applies to
- Windows 10
- Windows 10 Mobile
RS2 ships with Windows Provisioning PowerShell cmdlets in box. These cmdlets make it easy to script the following functions
Cmdlet | Purpose | Syntax |
---|---|---|
Add-ProvisioningPackage | Use this cmdlet to apply a provisioning package. | Add-ProvisioningPackage [-Path] <string> [-ForceInstall] [-LogsFolder <string>] [-WprpFile <string>] [<CommonParameters>] |
Remove-ProvisioningPackage | Remove a provisioning package | Remove-ProvisioningPackage -PackageId <string> [-LogsFolder <string>] [-WprpFile <string>] [<CommonParameters>] Remove-ProvisioningPackage -Path <string> [-LogsFolder <string>] [-WprpFile <string>] [<CommonParameters>] Remove-ProvisioningPackage -AllInstalledPackages [-LogsFolder <string>] [-WprpFile <string>] [<CommonParameters>] |
Get-ProvisioningPackage | Get information about an installed provisioning package | Get-ProvisioningPackage -PackageId <string> [-LogsFolder <string>] [-WprpFile <string>] [<CommonParameters>] Get-ProvisioningPackage -Path <string> [-LogsFolder <string>] [-WprpFile <string>] [<CommonParameters>] Get-ProvisioningPackage -AllInstalledPackages [-LogsFolder <string>] [-WprpFile <string>] [<CommonParameters>] |
Export-ProvisioningPackage | Extract the contents of a provisioning package | Export-ProvisioningPackage -PackageId <string> -OutputFolder <string> [-Overwrite] [-AnswerFileOnly] [-LogsFolder <string>] [-WprpFile <string>] [<CommonParameters>] Export-ProvisioningPackage -Path <string> -OutputFolder <string> [-Overwrite] [-AnswerFileOnly] [-LogsFolder <string>] [-WprpFile <string>] [<CommonParameters>] |
Add-TrustedProvisioningCertificate | Adds a certificate to the Trusted Certificate store | TBD |
Note
You can use Get-Help to get usage help on any command. Example - “Get-Help Add-ProvisioningPackage”.
Trace logs are always captured when using the Cmdlet. The following logs are available in the logs folder after the cmdlet completes: • ProvTrace..ETL - ETL trace file, unfiltered • ProvTrace..XML - ETL trace file converted into raw trace events, unfiltered • ProvTrace..TXT - TEXT file containing trace output formatted for easy reading, filtered to only show events logged by providers in the WPRP file • ProvLogReport..XLS - Excel file containing trace output, filtered to only show events logged by providers in WPRP file Suggested scenario
- Create a provisioning package using the WCD App.
- Use the Add-ProvisioningPackage to apply the provisioning package.
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 (like MDT and SCCM task sequences).
Related topics
- How provisioning works in Windows 10
- Install Windows Configuration Designer
- Create a provisioning package
- Apply a provisioning package
- Settings changed when you uninstall a provisioning package
- Provision PCs with common settings for initial deployment (simple provisioning)
- Provision PCs with apps and certificates for initial deployments (advanced provisioning)
- Use a script to install a desktop app in provisioning packages
- NFC-based device provisioning
- Windows Configuration Designer command-line interface (reference)
- Create a provisioning package with multivariant settings