When running the command:
Export-mailbox -id firstname.lastname@example.org -TargetFolder "User1Data" -TargetMailbox email@example.com
I am getting the following error:
Export-Mailbox : Error was found for Larry Hols (firstname.lastname@example.org) because: Error occurred in the step: Creating target folder in the target mailbox. An unknown error has occurred., error code: -2147221233
At line:1 char:15
+ Export-mailbox <<<< -id email@example.com -TargetFolder User1Data -TargetMailbox firstname.lastname@example.org
+ CategoryInfo : InvalidOperation: (0:Int32) [Export-Mailbox], RecipientTaskException
+ FullyQualifiedErrorId : 4DDBADE7,Microsoft.Exchange.Management.Recipient
Any ideas on what I need to change in the syntax?
I tried with and without quotes around "User1Data" and I tried to create the folder on the recipients email ahead of time.