In this blog you will get to know how to connect office 365 or Exchange Online using powershell.
- Open powershell with Run as admin.
- Connect to the office 365
$Credential = Get-Credential
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri “https://outlook.office365.com/powershell-liveid” -Credential $credential -Authentication “Basic” -AllowRedirection
You will get pop up authentication window and then powershell is ready to run any command.