How to: Connect to a Remote Office 365 Tenant PowerShell Session

How to: Connect to a Remote Office 365 Tenant PowerShell Session

Probably at some point of using the new Microsoft´s Office 365 offering you´ll need to run some PowerShell commands against your Tenant sesison. Below I have gather a few commands to reference when working on a remote Office 365 Tenant PowerShell Session:

Connection:

$cred = Get-Credential
$global:session365 = New-PSSession -configurationname Microsoft.Exchange -connectionuri https://ps.outlook.com/powershell/ -credential $cred -authentication Basic -AllowRedirection
Import-PSSession $global:session365 –Prefix o365
Get-o365Mailbox

 

 

 

asd

Enhanced by Zemanta

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.