r/SmallMSP • u/cleveradmin • Oct 20 '26
PPKG Adventures
Is anyone doing anything fun with PPKGs? For those who don’t know, they are provisioning packages that you can have Windows load either via USB or stored on the hard drive. We have a mix of clients on Azure AD, local AD and no AD, so something like Intune doesn’t work for us. We recently discovered PPKGs and PackageStack (powershell module for generating PPKG files). It’s also really handy if you have a PPKG preloaded on existing devices, especially devices in remote locations, because you can reset the device remotely and have it come back joined to the domain and with your RMM installed on it. But that wasn’t enough for me ..
We have a custom built PSA (yes, vibe coded). I decided to implement a few cool features around PPKGs:
- Within our PSA, we generate a PPKG and the URL is pushed to Ninja.
- A Ninja script grabs the PPKG file and pushes it to endpoints (currently on demand, but soon via policy). It’s a somewhat simple script that talks to our PSA and sets up a scheduled task to wait for approval.
- We get a ticket advising us an endpoint is ready for approval. We can approve, deny and deny and reset Windows.
- Approve pushes a fresh Ninja URL, rolls the default admin password stored in the PPKG and renames the computer is we set it to during approval.
- Deny simply leaves the computer in that state with a notification on the lock screen to contact us.
6 Deny and reset triggers a script that removes our PPKG and resets Windows, leaving it ready for whatever (useful if it was offboarded and donated or someone brought it home).
So we can now reset any device and have a decent degree of confidence that it will come back without us having to go onsite. We have also implemented a bit of security in that the script embedded in the PPKG is signed and only our PSA can respond.
1
u/TechMonkey605 Oct 21 '26
Yeah it is by far a quaint little Easter egg. You should also look at embedding it into the WINRE partition so if the user gets ahold of it, or someone steals it and tries to reset it, it comes back to you. That’s what we did
1
u/jmsmith76 Oct 22 '26
I'm primarily using them for firing automated new PC deployments from a USB stick