Entra ID
PowerShell for administering Microsoft Entra ID via Microsoft Graph. Connect
first (see
Microsoft 365 — Overview & Connection),
then run any script in this section — each reuses an existing Connect-MgGraph
session if one is open.
Scripts
- Stale Enterprise Applications — every non-Microsoft service principal with its last sign-in, oldest first.
- Privileged Role Assignments — who holds directory roles, permanently and through PIM, with synced and disabled holders flagged.
- Authentication Methods and MFA Coverage — what each account can actually authenticate with, and who is still password-only.
- Conditional Access Inventory — every policy, its state, who it includes and excludes, and the exclusions that accumulate.
- Guest Account Review — who the external accounts are, who invited them, and which ones never accepted or never returned.
The order they're worth running in
These four answer one question between them — who can get in, and what can they reach — and they build on each other:
- Privileged Role Assignments tells you who holds administrative power.
- Authentication Methods tells you how well those accounts are protected. It is the missing half of the first report, which can see roles but not authentication strength.
- Conditional Access Inventory tells you which rules actually enforce it, and who has been excluded from them.
- Guest Account Review covers the accounts most likely to be outside all three.
An administrator with no strong authentication, excluded from the policy that would require it, is a finding that only appears when you read the three together.