- On your local computer Run Powershell as an Administrator
- Run the following command:
Windows PowerShell
Copyright (C) 2013 Microsoft Corporation. All rights reserved.
PS C:\Windows\system32> $LiveCred = Get-Credential
Copyright (C) 2013 Microsoft Corporation. All rights reserved.
PS C:\Windows\system32> $LiveCred = Get-Credential
- In the Windows PowerShell Credential Request window that opens, type the credentials of an administrator account in your cloud-based organisation. When you are finished, click OK
- Run the following command:
PS C:\Windows\system32> $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell/ -Credential $LiveCred -Authentication Basic -AllowRedirection
- Run the following command:
PS C:\Windows\system32> Import-PSSession $Session
- Verify your connection with the following command:
PS C:\Windows\system32> Set-ExecutionPolicy unrestricted
- Don’t forget to disconnect your session when you have you finished doing what you need to:
PS C:\Windows\system32> Remove-PSSession $Session
IT Consultant & Microsoft Licensing Solutions Specialist