A page for random commands…

Connecting Windows Azure Powershell

5050.PowerShell-help-2_2358BD5C
How to connect BOTH PowerShell (Windows Azure PowerShell module) and (PS) in one session using Windows Azure PowerShell module and Windows PowerShell to Exchange online (O365).

Click Start > All Programs > select Windows PowerShell

Run the commands below:

set-executionpolicy unrestricted
Y
$LiveCred = Get-Credential
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell/ -Credential $LiveCred -Authentication Basic -AllowRedirection
Import-PSSession $Session

Leave a Reply

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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>