Oct 21

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

Leave a Reply

%d bloggers like this: