Avatar of Nicholas Yeatman
Nicholas YeatmanFlag for United States of America

asked on 

Cross mailbox search Exchange 2007 Error

When running the command:
Export-mailbox -id holsl@forsythpl.org -TargetFolder "User1Data" -TargetMailbox emailadmin@forsythpl.org

I am getting the following error:
Export-Mailbox : Error was found for Larry Hols (holsl@forsythpl.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 holsl@forsythpl.org -TargetFolder User1Data -TargetMailbox emailadmin@forsythpl.org
    + CategoryInfo          : InvalidOperation: (0:Int32) [Export-Mailbox], RecipientTaskException
    + FullyQualifiedErrorId : 4DDBADE7,Microsoft.Exchange.Management.Recipient
   Tasks.ExportMailbox

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.

Thank you!
Exchange

Avatar of undefined
Last Comment
Nicholas Yeatman
SOLUTION
Avatar of Amit Kumar
Amit Kumar
Flag of India image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
ASKER CERTIFIED SOLUTION
Avatar of Will Szymkowski
Will Szymkowski
Flag of Canada image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
Avatar of Nicholas Yeatman

ASKER

OK I see I need to run this command
Add-MailboxPermission -Identity john -User Admin01 -AccessRights FullAccess

What would go in place of Admin01?

Would the end user see any signs of this.
Avatar of Amit Kumar
Amit Kumar
Flag of India image

Add-MailboxPermission -Identity "John" -User <your account which is exporting mail data> -AccessRights Fullaccess -InheritanceType all
Would the end user see any signs of this.
No this is simply applying an Exchange ACL on the mailbox. Once the export is complete you can use tthe same command but changing Add-MailboxPermission to Remove-MailboxPermission.

Will.
Avatar of Nicholas Yeatman

ASKER

Thank you very much for your help and fast responses!!!
We have been able to retrieve the needed data.
Exchange
Exchange

Exchange is the server side of a collaborative application product that is part of the Microsoft Server infrastructure. Exchange's major features include email, calendaring, contacts and tasks, support for mobile and web-based access to information, and support for data storage.

213K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo