Topic Hub
PowerShell
Migrate AzureAD and MSOnline scripts to the Graph SDK before they break and reuse Graph patterns across Intune and Microsoft 365 automation.
7 published articles in this reading list
Inventory the script before rewriting the cmdlet
Most AzureAD and MSOnline failures are not a missing Graph equivalent. They are an undocumented identity, a write action nobody owns, or a scheduled task that still authenticates with a stored password. Capture the host, identity, permissions, output, and rollback owner before you replace a single command.
Graph work is permission discovery, not search-and-replace
Map the Graph resource, delegated versus application permissions, paging, and throttling for each script. A renamed cmdlet that still pulls every user in the tenant, or that silently uses the beta endpoint, is not a completed migration.
When not to automate yet
Do not wrap a write action — licence assignment, group membership, session revocation, or device delete — in a scheduled job until the read-only report is trusted and a named owner can reverse the change.
Which guide for which ticket
| Job | Start with | Guide |
|---|---|---|
| Graph migration | Script inventory and Graph permissions | Move AzureAD and MSOnline scripts to Microsoft Graph PowerShell |
| Autopilot export | Serial, group tag and profile status | Export Autopilot devices with Graph PowerShell |
| Software inventory | Registry uninstall keys and AppX packages | Collect installed software with PowerShell |
| SMTP AUTH | What still authenticates with SMTP AUTH | Exchange Online SMTP AUTH migration |
| Remediation script output | Detection and remediation script exit codes, context and output limits | Remediation script not running or reporting |
| Dynamic group query | Graph queries to check rule processing and membership | Entra dynamic group not updating |
Start here if…
- Migrating AzureAD or MSOnline scripts? Move AzureAD and MSOnline scripts to Microsoft Graph PowerShell
- Exporting Autopilot devices with Graph? Export Autopilot devices with Graph PowerShell
- Need a point-in-time software inventory? Collect installed software with PowerShell
- Wrapping an app as Win32 and need a detection script? Win32 detection script generator
Deep-Dive Tutorials
View allMove AzureAD and MSOnline scripts to Microsoft Graph PowerShell
Inventory each script, map Graph permissions, then replace cmdlets. Includes the app-registration evidence screens.
Published guidance
Export Autopilot devices with Graph PowerShell
Why Get-MgDeviceManagementWindowsAutopilotDeviceIdentity shows empty profile status, which fields are beta only, and scripts to export Autopilot devices.
Published guidance
Collect installed software with PowerShell
Collect installed software from unmanaged Windows PCs with PowerShell, using registry uninstall keys and AppX packages, then export it to CSV or HTML.
Published guidance
Exchange Online SMTP AUTH migration
Find what still authenticates with SMTP AUTH and move it before the cut-off.
Published guidance
Troubleshooting Guides
View allRemediation script not running or reporting
Intune Remediations that do not run, detect, remediate, or report correctly: licensing, exit codes, schedules, IME logs, PowerShell context, and retry.
Published guidance
Entra dynamic group not updating
Microsoft Entra dynamic groups that do not update: rule syntax, user and device attributes, Graph checks, processing delays, and Intune assignment impact.
Published guidance
Autopilot device not importing
Hash capture, CSV validation, duplicates, permissions, Connector, profile assignment, and Graph retry.
Published guidance