How to Open an Exchange PowerShell

The Microsoft Office 365 product line includes Exchange email servers, providing Web and email client access to a cloud-based email server. To manipulate your company's Exchange account from the command line, you can connect via the PowerShell utility. This application is available for all versions of Windows, and by entering a few key instructions, you can connect to a command-line interface and interact with your online Exchange server.


Open PowerShell and enter the following command:

$LiveCred = Get-Credential


Enter the login credentials for Exchange when the window appears, and then click "OK."


Enter the following command in PowerShell:



Enter the following command once the previous command has processed:

Remove-PSSession $Session

You now have a PowerShell connected to your online Exchange account.