Skip to main content

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

JobStart withGuide
Graph migrationScript inventory and Graph permissionsMove AzureAD and MSOnline scripts to Microsoft Graph PowerShell
Autopilot exportSerial, group tag and profile statusExport Autopilot devices with Graph PowerShell
Software inventoryRegistry uninstall keys and AppX packagesCollect installed software with PowerShell
SMTP AUTHWhat still authenticates with SMTP AUTHExchange Online SMTP AUTH migration
Remediation script outputDetection and remediation script exit codes, context and output limitsRemediation script not running or reporting
Dynamic group queryGraph queries to check rule processing and membershipEntra dynamic group not updating

Start here if…