top of page

How to Connect 21V Hosted Office 365 Exchange Online using PowerShell

Updated: Dec 29, 2023

You can use the below cmdlets to Connect to the 21V Hosted Office365 Environment.

Open PowerShell in Elevated Mode and run the following commands,

Set-ExecutionPolicy -ExecutionPolicy unrestricted 
$UserCredential = Get-Credential 
21V

21V
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://partner.outlook.cn/PowerShell -Credential $UserCredential -Authentication Basic -AllowRedirection 

21V

Import-PSSession $Session -DisableNameChecking 
21V

You can see how it is connected. You can run the Cmdlets for Exchange Online and validate.

2 views0 comments
bottom of page