Website · LinkedIn · X · YouTube
Type: Collection · Status: Community project
PowerShell scripts for Microsoft Intune Custom Compliance policies and device configuration checks.
This repository contains Microsoft Intune custom compliance discovery scripts and their matching JSON definitions. Each folder covers one practical Windows compliance check.
- 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.
| 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 |
This project is available under the terms in LICENSE.