🆕PowerShell Script PPKG
OSD 23.5.23.1+ Updated May 23, 2023
Last updated
OSD 23.5.23.1+ Updated May 23, 2023
Last updated
In this example, I'm going to detail how to wrap a PowerShell script in a Provisioning Package. The best example I can use is the Provisioning Package that I created to expand Driver Packs in First Boot.
First you need to make sure you have a standalone PowerShell Script that does not require interaction as Provisioning Packages won't allow that. Here's my script that is saved in a PS1 file
Open Windows Configuration Designer and select Advanced Provisioning
Complete the details for your project and press Next
Select All Windows desktop editions and press Next
Complete the following steps:
Expand Runtime settings
Expand ProvisoiningCommands, DeviceContext, CommandFiles
Press Browse
Find and select your PowerShell script
Press the Open button
Press the Add button
Complete the following steps:
Select CommandLine
Enter the following command line (change the name of the PowerShell script to your file name)
Press Export and Provisioning package