Skip to main content

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​

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:

  1. Privileged Role Assignments tells you who holds administrative power.
  2. 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.
  3. Conditional Access Inventory tells you which rules actually enforce it, and who has been excluded from them.
  4. 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.