office365 cmd

Office365: Cmd

Update-MgUser -UserId "user@domain.com" -AccountEnabled:$false

| Task | Legacy MSOL Command (Deprecated) | Modern Graph / Exchange Command | | :--- | :--- | :--- | | | Connect-MsolService | Connect-MgGraph -Scopes "User.Read.All" | | List Users | Get-MsolUser | Get-MgUser | | Create User | New-MsolUser | New-MgUser | | Get Mailbox | Get-Mailbox (Legacy) | Get-EXOMailbox (Exchange V2/V3 Module) | | Assign License | Set-MsolUserLicense | Set-MgUserLicense | | Check Groups | Get-MsolGroup | Get-MgGroup | office365 cmd

Microsoft is heavily investing in the .

m365 login m365 status

While the GUI (Admin Center) is sufficient for small changes, the command line is essential for: Update-MgUser -UserId "user@domain