To give you a brief about my environment, we are running a very sophisticated multi-tenant environment for serving our customers/users. I had a request export one mailbox from Exchange, Exchange mailbox was hosted in the root domain and the user account was available a separate domain in an existing forest.
Once I run the command “New-MailBoxExportRequest”, I was getting the following error
WARNING: An unexpected error has occurred and a Watson dump is being generated: Object reference not set to an instance of an object.
WARNING: Task module “LoggingModule.OnIterateCompleted” fails with exception “Object reference not set to an instance of an object.”. This module is skipped. Task execution result should not be affected.
Then I run the following command to check it with works:
[PS] C:\Windows\system32>Set-AdServerSettings -ViewEntireForest $True
But unfortunately it didn’t help with the following error:
After running the following command (syntax) I was able to export the mailbox successfully.
[PS] C:\Windows\system32>New-MailboxExportRequest -Mailbox “EMAILID” -FilePath \\SharePath\user.pst -DomainController <FQDN of the domain controller where the user account resides>
You can download the PDF from below Link.