PowerShell Script to PPKG
Last updated
Last updated
In this example, the PowerShell script Set-OemModel.ps1 will be converted to a Provisioning Package. This script is part of OSConfig and found in the OSConfig\Scripts directory. This script has a simple purpose of setting the OEM Model information in System Properties.
If you don't have WICD installed, you can get it from the Windows 10 ADK. Create a new Project
Switch from the Basic to the Advanced Editor
Select Runtime settings from the right Navigation Pane and select Remove
In the left Navigation Pane, expand ProvisioningCommands and PrimaryContext. Add a Name and press the Add button
Select the Command on the Left Navigation Pane. In the Main window, Browse for the PowerShell file and enter the following CommandLine
Set the other values
Select Export from the top Menu and then select Provisioning package
Change the Build Owner to IT Admin
Leave this blank for general Provisioning
Set the proper location to save the Provisioning Package
Build the Provisioning Package
You can easily test a Provisioning Package by simply double clicking on the file. You will be prompted for confirmation
Here is a before and after to show the results
You can download the Provisioning Package created in this page by selecting the link below
Provisioning Packages are expanded to the Current User %Temp% directory
In the case of Provisioning Packages that are executed in OOBE, they are in the following location