mirror of
https://github.com/MicrosoftDocs/windows-itpro-docs.git
synced 2025-05-13 05:47:23 +00:00
4.2 KiB
4.2 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] [-ForceInstall] [-LogsFolder ] [-WprpFile ] []``` |
Remove-ProvisioningPackage | Remove a provisioning package | ```Remove-ProvisioningPackage -PackageId [-LogsFolder ] [-WprpFile ] []``` |
```Remove-ProvisioningPackage -Path [-LogsFolder ] [-WprpFile ] []``` | ||
```Remove-ProvisioningPackage -AllInstalledPackages [-LogsFolder ] [-WprpFile ] []``` | ||
Get-ProvisioningPackage | Get information about an installed provisioning package | ```Get-ProvisioningPackage -PackageId [-LogsFolder ] [-WprpFile ] []``` |
```Get-ProvisioningPackage -Path [-LogsFolder ] [-WprpFile ] []``` | ||
```Get-ProvisioningPackage -AllInstalledPackages [-LogsFolder ] [-WprpFile ] []``` | ||
Export-ProvisioningPackage | Extract the contents of a provisioning package | ```Export-ProvisioningPackage -PackageId -OutputFolder [-Overwrite] [-AnswerFileOnly] [-LogsFolder ] [-WprpFile ] []``` |
```Export-ProvisioningPackage -Path -OutputFolder [-Overwrite] [-AnswerFileOnly] [-LogsFolder ] [-WprpFile ] []``` | ||
Add-TrustedProvisioningCertificate | Adds a certificate to the Trusted Certificate store | TBD |
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.
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