Connect to Exchange servers using remote PowerShell

If you don’t have Exchange management tools installed on your computer, you can use Windows PowerShell to create a remote session to an Exchange server.  Open Windows PowerShell on your computer and run the following commands:

To Connect

The first step is to specify the credentials you will be using to connect because, in an ideal environment, your local account will not have access to an Exchange Server.

$UserCredential = Get-Credential

Next, we need to create a PowerShell session to the Exchange server.  You will need to specify the Exchange server FQDN (Fully Qualified Domain Name).  e.g.

$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri http://<ServerFQDN>/PowerShell/ -Authentication Kerberos -Credential $UserCredential

Then we import the session to establish the connection.

Import-PSSession $Session -DisableNameChecking

After you run the above command, you can check to make sure everything worked as expected by running a simple Get-Mailbox command to see if you get any results.

To Disconnect

To disconnect the session just execute the following.

Remove-PSSession $Session

Author: Vikram

I am just an IT person trying to share as much knowledge as possible hoping someone will find it helpful. It just takes time to organize everything from my head into something that makes sense.
5 1 vote
Article Rating
Notify of
Inline Feedbacks
View all comments