Issue
The Office 365 Module may log the following error while command Office365ProvisionMailbox is being executed when leavers are being migrated into Office 365:

2015-11-22 04:18:25Z|5988| 26| INFO| Get| -> Got 1 commands  
2015-11-22 04:18:25Z|5988| 39| INFO| ProvisionMailbox|Executing MailboxProvisioning command  
2015-11-22 04:18:25Z|5988| 15| INFO| ExecuteInternal|Provisioning Mailbox for [Test_User@abc123.com] Create archive [False]  
2015-11-22 04:18:30Z|5988| 15|ERROR| ProcessPipeErrors|Errors were detected. Review the following:  
2015-11-22 04:18:30Z|5988| 15|ERROR| ProcessPipeErrors|System.Management.Automation.RemoteException: 
The parameters passed to the cmdlet represent a managed account, which doesn't match the namespace state, which is federated.  
2015-11-22 04:18:30Z|5988| 15|ERROR|                                           Execute|Unable to process command Office365ProvisionMailbox: System.ApplicationException: System.Management.Automation.RemoteException: 
The parameters passed to the cmdlet represent a managed account, which doesn't match the namespace state, which is federated.
   at ArchiveShuttle.Module.Office365.Office365PsBase.ProcessPipeErrors(PipelineReader`1 errors, Boolean throwException)
   at ArchiveShuttle.Module.Office365.Office365MailboxProvisioner.ProvisionMailbox(String userPrincipalName, Boolean createArchive)
   at ArchiveShuttle.Module.Office365.Office365MailboxProvisioner.ExecuteInternal(ModuleCommand command)
   at ArchiveShuttle.Module.Office365.Office365PsBase.Execute(ModuleCommand command) 

 
Solution
This may mean that Archive Shuttle can not execute command Office365ProvisionMailbox, because your e-mail domain which is configured via Office 365 Environment->Office 365 Leavers configuration page in Archive Shuttle is set as ‘Federated’. See screenshot below where the email domain is configured in Archive Shuttle:
 

 
The following powershell commands can be used to check if your e-mail domain authentication is set to ‘Federated’ or not.
1\ Connect-msolservice -Credential $msolcred
2\ Get-MsolDomain -DomainName abc123.com
 
On the screenshot below you can see that domain authentication is set to ‘Federated’ and therefore Office365ProvisionMailbox command cannot be executed successfully.

Usually the resolution to this is to use a domain which is managed. A customer might also have abc123.onmicrosoft.com and it is that domain, which should be used in the Office 365 Environment page in Archive Shuttle.

Print Friendly, PDF & Email