Our community of experts have been thoroughly vetted for their expertise and industry experience. Experts with Gold status have received one of our highest-level Expert Awards, which recognize experts for their valuable contributions.
Most Valuable Expert2017 and 2020.
O365, Exchange Server,Windows Server, Active Directory, Virtualization, Teams and Email Migration Expert.
Published:
Updated:
Browse All Articles > Connect to Exchange Online Powershell with Modern Authentication.
This article helps you to connect to Exchange Online PowerShell (Office 365 tenant) with Windows10/11 PowerShell in 3 easy steps . You need only PowerShell on your computer, which is shipped by default with any new version of Windows.
The Exchange Online PowerShell module uses Modern Authentication for connecting to all Exchange-related PowerShell environments in Office 365: Exchange Online PowerShell, Security & Compliance PowerShell, and standalone Exchange Online Protection (EOP) PowerShell. For more information about the Exchange Online PowerShell module, see About the Exchange Online PowerShell module.
PowerShell and ExchangeOnlineManagement Module
Open and elevated PowerShellort Module ExchangeOnlineManagement using the following command.
Initiate a connection to Exchange Online PowerShell using the following command.
Enter username and password when you get a popup like the following.
And the code sent to the registered number or allow on Microsoft Authenticator.
Or Approve from Microsoft Authenticator app
Once authentication is successful you can see it importing commands
Once the commands are received/imported you are connected to Exchange Online PowerShell and can run Exchange commands in Exchange Online PowerShell.
Hope this is clear.
Please feel free to post comments if you face an issue.
Our community of experts have been thoroughly vetted for their expertise and industry experience. Experts with Gold status have received one of our highest-level Expert Awards, which recognize experts for their valuable contributions.
Most Valuable Expert2017 and 2020.
O365, Exchange Server,Windows Server, Active Directory, Virtualization, Teams and Email Migration Expert.
Comments (0)