Microsoft 365 Cmd -

Install-Module -Name ExchangeOnlineManagement Finally, connect to Microsoft 365:

| Task | Command | |------|---------| | List all users | Get-User -ResultSize Unlimited | | Show mailbox details | Get-Mailbox -Identity "user@domain.com" | | Assign a license | Set-MsolUserLicense -UserPrincipalName "user@domain.com" -AddLicenses "domain:ENTERPRISEPACK" | | Create a new user | New-MsolUser -UserPrincipalName "newuser@domain.com" -DisplayName "New User" -Password "TempPass123" |

Connect-ExchangeOnline -UserPrincipalName admin@yourdomain.com Once connected, you can run powerful commands directly: microsoft 365 cmd

When most people think of managing Microsoft 365, they picture the web interface—clicking through the Admin center, toggling licenses, and navigating endless menus. But for IT professionals and developers, the command line is often faster, more repeatable, and far more powerful.

Open CMD, type powershell , and run Connect-ExchangeOnline . You’ll never look at the web admin portal the same way again. Have a favorite Microsoft 365 command-line trick? Share it with the community below. You’ll never look at the web admin portal

powershell Then, install the Exchange Online Management module (one-time setup):

Disconnect-ExchangeOnline For those who prefer a single, cross-platform CLI (works in CMD, bash, or zsh), Microsoft offers the Microsoft Graph CLI ( mgc ). It’s lighter than full PowerShell and doesn’t require a separate scripting environment. Installation (Windows CMD) Run as administrator in CMD: cross-platform CLI (works in CMD

winget install Microsoft.Graph.CLI Or with npm:

Learn How to Market Your Online Course

Use this FREE CHEAT SHEET to successfully gain attention and customers for your online course.

    We won't send you spam. Unsubscribe at any time.