Many of the advanced functionality and configuration is only available via powershell. The following is the procedure to establish a connection to Exchange Online or Office 365.

  1. On your local computer, open Windows PowerShell and run the following command.
  2. $UserCredential = Get-Credential

    In the Windows PowerShell Credential Request dialog box, type your Exchange Online user name and password, and then click OK.

  3. Run the following command:
  4. $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri -Credential $UserCredential -Authentication Basic -AllowRedirection

  5. Run the following command:

Import-PSSession $Session

Be sure to disconnect the remote PowerShell session when you’re finished. If you close the Windows PowerShell window without disconnecting the session, you could use up all the remote PowerShell sessions available to you, and you’ll need to wait for the sessions to expire. To disconnect the remote PowerShell session, run the following command.

Remove-PSSession $Session