Skip to content

cyberhamza/Get-IntuneComplianceReport

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Get-IntuneComplianceReport

Overview

PowerShell script to generate comprehensive device compliance reports from Microsoft Intune via Microsoft Graph API. Exports CSV and interactive HTML dashboard.

Problem It Solves

Security and compliance teams need regular visibility into device compliance status for ISO 27001 audits, management reporting, and identifying non-compliant devices that pose security risks.

Features

  • Full compliance report for all or filtered devices
  • Exports compliant and non-compliant devices to separate CSV files
  • Generates interactive HTML dashboard with compliance rate
  • Shows days since last sync per device
  • Encryption status per device
  • Auto-installs required Microsoft Graph modules

Requirements

  • PowerShell 5.1 or later
  • Microsoft Graph PowerShell module (auto-installed)
  • Intune Administrator or Global Reader role

Usage

# Full report for all devices
.\Get-IntuneComplianceReport.ps1

# Windows devices only
.\Get-IntuneComplianceReport.ps1 -DeviceOS Windows

# Custom output path
.\Get-IntuneComplianceReport.ps1 -OutputPath "C:\Reports\Weekly"

Output

  • ComplianceReport.csv — all devices with compliance status
  • NonCompliantDevices.csv — non-compliant devices only
  • ComplianceReport.html — interactive dashboard with summary cards

Use Cases

  • Weekly compliance reporting to management
  • ISO 27001 audit evidence
  • Identifying devices not synced in 30+ days
  • Pre-audit security posture review

Author

Hamza Ali — IT Cybersecurity Engineer | Dubai, UAE

About

Pulls all device compliance data from Intune

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors