1. Home
  2. Lab library
  3. PowerShell

PowerShell labs

3 hands-on PowerShell labs (2 intermediate and 1 advanced), about 5.3 hours in total, with step-by-step Microsoft Entra ID and PowerShell instructions.

These labs cover PowerShell in Microsoft Entra ID. Work through them in the order shown. Each one lists its prerequisites, the PowerShell you will run, and how to check the change worked.

New to the topic? Read the lab prerequisites and IAM Foundations first.

Entra ID Security · Lab 01Identity Risk BaselineProduce a Graph PowerShell baseline covering MFA coverage, privileged roles, dormant accounts and SMS reliance.Intermediate90 minEntra ID Security · Lab 06Automated DisablementBuild dry-run-first automation that disables accounts that never registered MFA, with circuit breakers.Advanced120 minEntra ID Security · Lab 11PowerShell ReportingTurn one-off assessments into a reusable module and scheduled evidence packs for auditors.Intermediate110 min

About PowerShell labs

How many PowerShell labs are there?

There are 3 PowerShell labs on Identity Bytes Labs, taking about 5.3 hours in total.

Where should I start with PowerShell?

Start with "Identity Risk Baseline". Produce a Graph PowerShell baseline covering MFA coverage, privileged roles, dormant accounts and SMS reliance.

Do I need a production tenant?

No. Every lab is designed for a free, disposable Microsoft Entra test tenant. Never run lab steps against an environment people depend on.