For , use Microsoft Graph PowerShell SDK — it’s the future. For quick one-offs, CLI for Microsoft 365 works directly from CMD without PowerShell.
# List all Microsoft 365 groups Get-MgGroup -Filter "groupTypes/any(c:c eq 'Unified')" office365 cmd
"Office365 CMD" generally refers to the practice of managing Microsoft 365 (formerly Office 365) tenant and services via command-line interfaces, primarily using . While the legacy "Microsoft Online (MSOL)" module is being deprecated, management is now split into two distinct pathways: the Microsoft Graph PowerShell SDK (for modern API interaction) and the Exchange Online PowerShell module (for mail management). For , use Microsoft Graph PowerShell SDK —
Update-MgUser -UserId "user@domain.com" -AccountEnabled:$false office365 cmd
m365 aad user list