MsExchange Blog Spot Telnet25

April 1, 2013

Connecting Remote PowerShell Office 365

Filed under: General — telnet25 @ 1:23 pm

If you are managing Office 365 Exchange hosted mail systems and wish to connect to PS from your PC here are simple steps to get the work done. The remote PowerShell will provide you real easy way to manage your SMTP organization.

In this Example:

Office 365 SMTP domain we will connect too is and I am going to use my User name which has administrator privileges,

From administrator PS

  • Open PS with Administrator privileges
$LiveCred = Get-Credential


  • Run fallowing command ( don’t make any changes ) copy and paste into PS window.

$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri -Credential $LiveCred -Authentication Basic -AllowRedirection


  • Next run this PS
Import-PSSession $Session



Now we are connected we can see our mailboxes etc.


If we look from GUI we have same users , we can use GUI to manage these users now as well as PS from our management PC


Once we are done we can close the PS session with fallowing PS command

Remove-PSSession $Session



Oz Casey, Dedeal ( MVP north America)
MCSE 2003, M+, S+, MCDST
Security+, Project +, Server + (Blog) (Blog)

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Create a free website or blog at

%d bloggers like this: