How to connect Exchange Online using PowerShell #Office365 #PowerShell

preview_player
Показать описание
Hi Everyone,
In this video, I will show how to connect to Exchange Online using PowerShell. Please note the 2FA is enabled for my user and the procedure is a little different than basic authentication. In my next video, I will show how to connect without 2FA.

# To connect to Exchange Online with MFA
Step:1
Import-Module ExchangeOnlineManagement

Step:2

Step:3
Connect-MsolService -Credential $UserCredential

To get list of users (Optional)
Get-MsOlUser | Sort-Object -Property UserPrincipalName

# To end the session

Step:1
Get-PSSession

Step:2
Remove-PSSession -Id (Add the ID number)
Рекомендации по теме
Комментарии
Автор

Did you ever make the video on How to connect Exchange Online using PowerShell without 2FA? I'm not seeing it.

thbadmin