Category Archives: PowerShell

An Error occurred while locating computer account error when enabling Seamless Single Sign-On

When trying to enable Seamless Single Sign-On(SSSO) while the Authentication enabled with Password Hash Sync Authentication(PHS).

When trying to enable the Seamless Single Sign-on using the AADConnect Configuration Wizard. The configuration failed with the error message : “An Continue Reading

Invoke-WebRequest The remote name could not be resolved: ‘Watchdog.servicebus . windows.net

Issue:

When Testing the Hybrid Connectivity using the below Command,

Test-HybridConnectivity testO365Endpoints

Resolution:

Checked with Microsoft by raising Support case. It seems that the host watchdog.servicebus.windows.net is no longer . Which is why it could not be reached.

To resolve … Continue Reading

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

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

Open PowerShell in Elevated Mode and run the following commands,

Set-ExecutionPolicy -ExecutionPolicy unrestricted

$UserCredential = Get-Credential

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

How to Install MSOnline Module and Connect Azure AD of 21Vianet China Cloud using PowerShell

Installing MSOnline is pretty Simple.

Open PowerShell in Elevated Mode and run the command,

Set-ExecutionPolicy -ExecutionPolicy unrestricted

Install-Modue -Name MSOnline

By Default, When you run the command

Connect-MsolService

You will get connected to Global Tenant ( Public Cloud)

What if … Continue Reading