โ03-26-2024 01:49 AM
Hi Community Folks
The recently released option to enroll Windows devices via Provisioning Packages (PPKG) requires you to take a couple of steps manually by using the Windows Configuration Designer (ICD.exe) as shown in this nice video.
What if you could use a PowerShell Script instead to do all this?
I've written a PPKG Creator for you guys which does the following:
- prompt the user for the JumpCloud API key
- prompt the user for the desired prefix for the hostname (before the %SERIAL%)
- prompt the user for the desired username and password to be added to the <Users> section of the customizations.xml file
- generate a new GUID for the package ID
- construct the customizations.xml file with the <Users> section
- query the registry for the path to the ICD.exe and check if it exists
- copy the Desktop Store File to the Common Store File to work around a bug in ICD.exe
- create the PPKG using the ICD.exe and the customizations.xml file
- restore the Store Files back to the original state
Important to know and consider is that
Once executed your terminal output looks like this:
...and you end up with a PPKG which you can use for the bulk deployments:
When you look at the script, you will notice that the XML content needed for the PPKG creation is manipulated. If you like, you can add any other section here based on the specifications. As an example:
<Policies>
<ApplicationManagement>
<AllowAllTrustedApps>Yes</AllowAllTrustedApps>
</ApplicationManagement>
<WindowsLogon>
<HideFastUserSwitching>No</HideFastUserSwitching>
</WindowsLogon>
</Policies>
That's it. You can find the script on my Github here.
Thanks for reading
- Juergen
New to the site? Take a look at these additional resources:
Ready to join us? You can register here.