Custom Compliance PowerShell script for detecting additional local Administrators

One of our customers wanted to be sure that there were no additional accounts in the local Administrators group on their Intune devices, and… That’s where Custom Compliance policies come in :) In this blog post, I will show you how to automatically check the Administrators group and mark the device as non-compliant if needed.