PowerShell Gallery
CI
License: MIT
PowerShell module for Microsoft Graphβbacked reports: Intune Enrollment Flows, Intune Anomalies, Entra Admin Roles, M365 License Assignment, and Custom Security Attributes. Connects to Microsoft Graph and generates interactive HTML reports.
This module is maintained by Roy Klooster (RK Solutions).
- Repository: https://github.com/royklo/RKSolutions-Module
- PowerShell Gallery: https://www.powershellgallery.com/packages/RKSolutions
RKSolutions-Module/
βββ README.md # This file
βββ LICENSE # MIT
βββ CONTRIBUTING.md # How to contribute, fork & PR
βββ .gitignore
βββ .github/
β βββ ISSUE_TEMPLATE/ # Bug report, feature request
β βββ PULL_REQUEST_TEMPLATE.md
β βββ workflows/ # build-and-test.yml, trigger-publish.yml
βββ docs/
β βββ CMDLET-REFERENCE.md # Parameters and example output
β βββ PERMISSIONS.md # Microsoft Graph permissions per cmdlet
βββ CHANGELOG.md # Release history
βββ module/ # Script module (see module/README.md)
β βββ RKSolutions.psd1
β βββ RKSolutions.psm1
β βββ README.md
β βββ Core/ # Intune anomaly detection shared with the Maester pack
β βββ Public/ # Exported cmdlets
β βββ Private/ # Helpers
βββ Tests/
βββ Consistency.Tests.ps1 # Pester tests
βββ IntuneAnomalyCore.Tests.ps1 # Pester tests for module/Core and the Graph adapter
- PowerShell 7.0 or higher (Windows, macOS, Linux)
- Microsoft.Graph.Authentication (and other Graph modules as required by the cmdlets)
- Microsoft Graph permissions: App registration in Azure AD / Entra ID with the scopes required by the cmdlets you use. See Graph permissions (full list) for a per-cmdlet breakdown.
Install-Module -Name RKSolutions -Scope CurrentUsergit clone https://github.com/royklo/RKSolutions-Module.git
cd RKSolutions-Module
Import-Module ./module/RKSolutions.psd1 -ForceAlways run Import-Module from the repository root and use ./module/RKSolutions.psd1.
# Connect to Microsoft Graph (default scopes cover all reports)
Connect-RKGraph
# Generate reports (examples)
Get-IntuneEnrollmentFlowsReport -AssignmentOverviewOnly
Get-IntuneAnomaliesReport
Get-EntraAdminRolesReport
Get-M365LicenseAssignmentReport
Get-CustomSecurityAttributesReport
# Disconnect when done
Disconnect-RKGraph| Cmdlet | Description |
|---|---|
| Connect-RKGraph | Establishes a Microsoft Graph session for report cmdlets. |
| Disconnect-RKGraph | Disconnects and clears the Graph session. |
| Get-IntuneEnrollmentFlowsReport | Generates Intune assignment overview and/or device visualization report. |
| Get-IntuneAnomaliesReport | Generates Intune anomalies report. |
| Get-EntraAdminRolesReport | Generates Entra admin roles report. |
| Get-M365LicenseAssignmentReport | Generates M365 license assignment report. |
| Get-CustomSecurityAttributesReport | Generates Custom Security Attributes report across users, devices, and apps. |
For full parameter details and examples, see Cmdlet Reference.
We welcome contributions: fork the repo, make your changes, and open a pull request. See CONTRIBUTING.md for the workflow and how to report bugs.
MIT β Copyright (c) Roy Klooster - RK Solutions.