Tag Archives: PowerShell

PowerShell Fails to Connect to Office 365

Issue

You may experience an error when connecting to SharePoint Online (or other Office 365 services) via PowerShell. All you get back is a generic:

Connect-SPOService : Unexpected response from the server. The content type of the response is “text/html;
charset=UTF8”. The status code is “OK”.

Example Error

PS C:\Windows\system32] Connect-SPOService -Url https://tenant-admin.sharepoint.com
Connect-SPOService : Unexpected response from the server. The content type of the response is "text/html;
charset=UTF8". The status code is "OK".
At line:1 char:1
+ Connect-SPOService -Url https://tenant-admin.sharepoint.com
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Connect-SPOService], ClientRequestException
+ FullyQualifiedErrorId : Microsoft.SharePoint.Client.ClientRequestException,Microsoft.Online.SharePoint.PowerShel
l.ConnectSPOService

Cause

This can happen when your corporate web filter blocks the traffic to your admin URL, such as https://tenant-admin.sharepoint.com. Check the logs on the web filter / proxy to ensure the traffic is being allowed.

Advertisements

Exchange 2010 Arbitration Mailboxes Missing

The arbitration mailboxes can normally be found using a simple PowerShell command:

Get-Mailbox -Arbitration

If you are in a multi-domain forest, this command will return nothing if you run it on an Exchange Server in a child domain. Before you panic and think you system mailboxes are missing, remember that you need to set your ADServerSettings:

Set-ADServerSettings -ViewEntireForest:$true

Once you run this, you can then view your arbitration mailboxes with command:

Get-Mailbox -Arbitration

If the user accounts actually have been deleted, there are instructions on TechNet for re-creating it:

http://technet.microsoft.com/en-us/library/gg588318(v=exchg.141).aspx