

This is hopelessly outdated and obsolete (no MFA here…. In the beginning, Admins were used to connect to Exchange Online with Remoting (“New-PSSession -ConnectionUri ……” and so on). There is another article on this blog with a general comparison of the modules needed for O365 and Azure AD scripting. If you want to script with Exchange Online mail objects, as well as other important cloud objects like Unified Groups (‘O365 Groups’), then ExchangeOnlineManagement is the choice for you. It provides all the cmdlets like ‘Get-Mailbox’, ‘Enable-MailContact’, or ‘New-DistributionGroup’. This is the module called ExchangeOnlineManagement. It needs ‘Run as Administrator’ access to install some modules.This is a short article about how to install and use the Exchange Online PowerShell module. If you have the latest Windows release, you’ll have Powershell.Īdmin access – email address, password and, if necessary, Multi-factor authentication for administrators access to the Microsoft 365 organization. PowerShell – we’ll use PowerShell that comes with all Windows 11/10 64-bit systems. It applies to most Microsoft 365 hosting worldwide but there are special cases with slightly different commands or 21Vianet (China), Office 365 Germany plus US Government DoD and GCC High. Here’s how to setup PowerShell ‘from scratch’ so you can administer Microsoft 365 hosted mailboxes.įor this article, we’ll show how to setup admin access to a Microsoft 365 hosted Exchange Server organization. The warnings and errors are so unhelpful they would have been considered inadequate in the 1990’s, let alone now. Setting up Exchange Server access isn’t simple and made worse with truly awful error messages. It’s especially hard for small self-managing organizations. Redmond seems happy to publish long complicated command lines without any context. Unfortunately, Microsoft seems to assume all their customers are born knowing the intricacies of PowerShell and how it works with Microsoft 365.

PowerShell is a formidable tool but hardly user friendly. PowerShell also let administrators control multiple mailboxes more easily. It’s typical of an option only available via PowerShell, not the admin web page. That command enables Plus Addressing in Exchange Server. Looks simple, but that command alone won’t work in PowerShell because there are add-ins to be installed and login necessary. Set-OrganizationConfig -AllowPlusAddressInRecipients $true Microsoft 365 customers will often see instructions like this to configure their Exchange Server mailboxes using PowerShell. How to run administration commands via PowerShell for Microsoft 365 hosting and especially Microsoft 365 Exchange Server or mailbox hosting.
