PowerShell scripts for Microsoft Intune Custom Compliance policies and device configuration checks.
Open-Source Collection · PowerShell · Practical by design
This repository contains Microsoft Intune custom compliance discovery scripts and their matching JSON definitions. Each folder covers one practical Windows compliance check.
| Check | Purpose |
|---|---|
Check-AvEnabled |
Confirm that antivirus protection is enabled |
Check-FirewallEnabled |
Confirm that Windows Firewall is enabled |
Check-FreeStorage |
Check available storage |
Check-IfAppIsInstalled |
Detect whether a required application is installed |
Check-IfDeviceIsEncrypted |
Check device encryption |
Check-IfDeviceIsUpToDate |
Check the Windows update state |
Check-IfUnathorizedLocalAdmins |
Detect unexpected local administrators |
- Open the folder for the check you want to use.
- Review and test the PowerShell discovery script on a test device.
- In the Microsoft Intune admin center, create a custom compliance policy.
- Upload the
.ps1discovery script and import the matching.jsondefinition. - Assign the policy to a test group before a wider rollout.
Note: Always review the expected values in the JSON file. Adjust them to match your own compliance requirements.
This project is available under the terms in LICENSE.
Built and maintained by Jannik Reinhard · Microsoft MVP for Security and AI Platform.
Stay healthy, Cheers Jannik