In this blog you will get to know how to connect office 365 or Exchange Online using powershell.

  1. Open powershell with Run as admin.
  2. Connect to the office 365

$Credential = Get-Credential
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri “” -Credential $credential -Authentication “Basic” -AllowRedirection
Import-PSSession $Session

You will get pop up authentication window and then powershell is ready to run any command.