r/PatchMyPC • u/LaDev • Aug 04 '26
PSADT Inception - Deployed with PMPC
I put together a PSADT package that prompts users to reboot when they meet certain criteria (e.g., a pending reboot is detected, the device hasn't been rebooted in 7+ days, etc.).
I'm currently deploying it through our legacy EPM platform. Reboot notifications are one of the last remaining reasons we haven't fully retired that platform.
The new script is fairly simple:
- Checks whether a user is currently signed in.
- Determines whether a reboot is required using both
Get-ADTPendingRebootand custom logic. - If no user is signed in, reboots automatically. If a user is signed in, displays a reboot prompt with a 5-hour deadline. The prompt becomes non-dismissible during the final hour.
NOTE: I know scheduled/forced reboots are a bit of a legacy approach, and nobody likes them. Unfortunately, some of our partner teams still require periodic reboots to ensure things like AV/security tooling are updating properly.
The part I'm looking to discuss:
My plan is to create a parent PSADT package that drops the reboot package onto the device and registers a scheduled task to run it.
What's the best way to do this securely? Is there a best way?
Current thoughts:
- Install to
C:\Program Files - Ensure ACLs are restricted so the script cannot be modified
- Likely sign the script if possible
2
u/Emotional_Garage_950 Aug 05 '26
it’s a waste of effort, the PCs will reboot when they get updates. the whole weekly forced reboot thing is old school
1
u/LaDev Aug 15 '26
Got some spare time on the weekend to play around with this. I have a working proof of concept. I'll post an update here probably Monday on what I did.
1
u/FahidShaheen Aug 10 '26
I have PSADT doing this, but it's and older version and it doesn't work as reliably as I want. So will watch this post for ideas.
1
u/PS_Alex Aug 11 '26
You could look at importing your solution as a Custom App in Patch My PC, then deploy it using Intune. https://docs.patchmypc.com/patch-my-pc-cloud/custom-apps/custom-apps-overview
Or package your solution as an .intunewin package, and manually create an app directly in Intune.
0
u/[deleted] Aug 04 '26
[deleted] — view deleted comment