Sometimes, when managing many Office 365 tenants you need to open multiple connections to tenants and various Office 365 Services. The PowerShell script below offers quick and easy way managing your own connections to Azure AD and Exchange Online.
This is simple form-based PS script that will allow you to store connection profiles and quickly access service you need.
Warning! Nevertheless script stores password as secure string,
do not store your connection profiles on publicly used computers.
Please find script and short manual below.
Sometimes when you trying to convert Shared mailbox to Regular mailbox or vice versa on your Office 365 tenant you may face following error: (actually you may face the error when performing any type of mailbox conversions):
Error on proxy command 'Set-Mailbox -type: 'Shared' -Identity: 'your_alias' -Confirm:$False -Force:$True' to server DBXPR04MB205.eurprd04.prod.outlook.com: Sever version 1941996320, Proxy method PSWS: Request return error with the following error message:
The remote server returned an error: (500)
Internal Servicer Error...
+CategoryInfo :NotSpecified: (:)
+FullyQualifiedErrorID : Microsoft.Exchange.Configuration.CmdletProxyException,Microsoft.Exchange.Management.RecipientTasks.SetMailbox
+PSComputerName : pod51000psh.outlook.com
It seems to be internal Office 365 issue and there is no other solution other than give Microsoft a call, but in case you need convert mailboxes urgently, you may want to use following workaround:
User receiving following error when trying to access Options from OWA in his Office 365 mailbox:
Sorry! Access denied :(
You don't have permission to open this page. If you're a new user or were recently assigned credentials, please wait 15 minutes and try again.
You're still signed in. If you want to sign out, use the link below.
Client Access server name:
Client Access server version:
There can be situation where you need completely remove an re-create your Hybrid configuration which can seem challenging from required actions point of view. Procedure below describe steps needed to be done in order if you want remove and create Hybrid Configuration for example if you receiving following error when running Hybrid Configuration Wizard:
Execution of the Set-FederatedOrganizationIdentifier cmdlet has thrown an exception. This may indicate invalid parameters in your hybrid configuration settings.
Federation trust "yourfederateddomain/Configuration/Deleted Objects/Microsoft Federation Gateway DEL:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" wasn't found. Make sure you have typed it correctly.
at Microsoft.Exchange.Management.Hybrid.RemotePowershellSession.RunCommand(String cmdlet, SessionParameters parameters, Boolean ignoreNotFoundErrors)
That particular procedure is written for Exchange 2013/Office 365 Wave 15 configuration, but it works pretty well for Exchange 2010/Wave 15 Hybrid.
- Execute following command on you on-premise Exchange 2013 server (that command is not available on Exchange 2010, if your Hybrid server is Exchange 2010, just skip that step):
- Remove existing organization relationships from both on-premise and O365 (you can use that command, if you have just single relationship on each side):
Get-OrganizationRelationship | Remove-OrganizationRelationship