Overview
Archive Shuttle Office 365 module is by default attempting to reach remote server\endpoint outlook.office365.com to create PowerShell connection to process commands like the Office365CollectMailboxes command. This article explains how to configure different endpoint\Office365 PowerShell URL for dedicated Office 365 tenant in Archive Shuttle if it is required.
The error below may be seen in the Office365Import.Client log file in case your network settings (firewall/proxy) restrict you from connecting to remote server outlook.office365.com.
2016-05-09 18:42:00Z|3523| 39|ERROR|                                           Execute|Unable to process command Office365CollectMailboxes: QUADROtech.PowerShell.PsException:
Connecting to remote server outlook.office365.com failed with the following error message : The WinRM client received an HTTP status code of 403 from the remote WS-Management service.
For more information, see the about_Remote_Troubleshooting Help topic. ---> System.Management.Automation.Remoting.PSRemotingTransportException:
Connecting to remote server outlook.office365.com failed with the following error message : The WinRM client received an HTTP status code of 403 from the remote WS-Management service.
For more information, see the about_Remote_Troubleshooting Help topic.
at System.Management.Automation.Runspaces.Internal.RunspacePoolInternal.EndOpen(IAsyncResult asyncResult)
at QUADROtech.PowerShell.PowerShellWrapper.get_RunspacePool()
at QUADROtech.PowerShell.PowerShellWrapper.ExecutePsCommand(PSCommandBase command, Boolean throwExceptionOnError, Int32 retryCount)
--- End of inner exception stack trace ---

Details
The custom endpoint can be configured in the Office365 module configuration file (ArchiveShuttle.Module.Office365.exe.config), which can by default be found in: C:\Program Files (x86)\QUADROtech\Archive Shuttle Modules\Office365Module
The new parameter below needs to be added into the Office365 module configuration file into the <applicationSettings> Element.
<setting name="Office365PSUrlOverride" serializeAs="String">
<value>outlook.office365.com</value>
</setting>

Example of the new parameter with custom endpoint in the Office365 module configuration file:
<applicationSettings>
<ArchiveShuttle.Module.Office365.Properties.Settings>
<setting name="LogPerformance" serializeAs="String">
<value>True</value>
</setting>
<setting name="ComputerNamePostfix" serializeAs="String">
<value/>
</setting>
<setting name="Office365PSUrlOverride" serializeAs="String">
      <value>mail-xxx.xxx.xxxcloud.com/powershell-liveid</value>
      </setting>
</ArchiveShuttle.Module.Office365.Properties.Settings>
</applicationSettings>

When the new value\custom endpoint is present, you should see in the Office365Import.Client log file on TRACE level the following message: “Office 365 URL override in configuration, using alternative endpoint : [{0}]”
Note: The credentials editor still will use the URL Outlook.office365.com if you try to do ‘Test Connection’ with it, but it can be ignored.

Print Friendly, PDF & Email