EntraHygiene

1.0.0

Read-only Microsoft 365 / Entra ID identity hygiene checks. Finds stale accounts, privileged accounts without strong MFA, permanent vs eligible role assignments, conditional-access gaps, and licenses on inactive accounts. Outputs objects, not text.

Minimum PowerShell version

7.2

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Module -Name EntraHygiene

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

Install-PSResource -Name EntraHygiene

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Copyright

(c) 2026 Eduard Arbona. Released under the MIT licence.

Package Details

Author(s)

  • Eduard Arbona

Tags

Entra EntraID AzureAD Microsoft365 MicrosoftGraph Security Identity Graph Audit ReadOnly MFA PIM ConditionalAccess BlueTeam

Functions

Get-EhStaleAccount Get-EhPrivilegedWithoutMfa Get-EhRoleAssignment Get-EhConditionalAccessGap Get-EhInactiveLicense

PSEditions

Core

Dependencies

Release Notes

1.0.0 - First release on the PowerShell Gallery. Five read-only identity-hygiene checks over Microsoft Graph: stale accounts, privileged accounts without a strong authentication method, permanent versus eligible (PIM) role assignments, Conditional Access gaps, and licenses sitting on inactive accounts. Every cmdlet returns objects rather than formatted text. There is no write path in the module and a Pester test fails the build if a Graph write verb appears anywhere in it. Authentication is the caller's existing Connect-MgGraph session; the module never handles credentials. Full history: https://github.com/earbona23/EntraHygiene/blob/main/CHANGELOG.md

FileList

Version History

Version Downloads Last updated
1.0.0 (current version) 8 11/5/2026