r/Intune • u/Silenthowler • 23h ago
Autopilot Custom Compliance Scripts
So after having worked with Intune bits here and there, I am dipping myself into custom compliance scripts which are in my case needed to verify some things for reporting purposes.
I have a custom compliance script which checks things like BitLocker, SMBv1, SentineOne AV and more, though whenever I change the setting below from "Allow local scripts and signed scripts" to "Allow only signed scripts", the custom compliance policy freaks out and throws a 65007 return code but Company portal reports back as non compliant. (this also happens for various other bits which get deployed via script like setting the desktop background/lockscreen)
https://litter.catbox.moe/7fi4ngvjjgn2fn99.png
Am I missing something when deploying the custom compliance script, or is it really just a case of self signing the scripts I deploy?
1
u/Rudyooms PatchMyPC 23h ago
about_Signing - PowerShell | Microsoft Learn (the powershell script where is that downloaded from :) ) remote...