Link to home
Start Free TrialLog in
Avatar of huntersp3
huntersp3Flag for Afghanistan

asked on

Error when using Export-Mail CMDLET

Hello Experts:

I am using Exchange 2007 server with SP1.  When I use the command Export-mailbox -id usermailbox  -TargetFolder 'ExportedData' -TargetMailbox usermailbox2 and supply the correct name of the user mail box and the Target Mailbox--all goes well until the last step and I get the following message:

Error occurred in the step: Creating target
folder in the target mailbox. An unknown err
or has occurred.

Could someone tell me what I am doing wrong?

Thanks
Avatar of ATIG
ATIG
Flag of United States of America image

what perms do you have on the source and target?
Avatar of huntersp3

ASKER

I have both Source and Target set with full access.
Also, while viewing the exchange log it is returning error code: -2147221233 along with Error occurred in the step: Creating target folder in the target mailbox. An unknown err
or has occurred.

Any ideas on what the error code means?
To run the Export-Mailbox cmdlet, the account you use must be delegated the following:

Exchange Server Administrator role and local Administrators group for the target server
Full access to the source and target mailboxes

do you have the correct server perms?
Hello ATIG.

I am logging on as Adminstrator to the mail server.  I don't recall having this problem--until I applied service pack 1.  I checked the Administrators rights and it is part of the Exchange Organizations Admistrators and Domain Admins, Domain Users, Enterprise Admin.  
Hello ATIG.

Here is an update, it must be something that Service Pack 1 did to the system.  I run Exchange 2007 at all three of my companies.  The other two doesn't have the Service Pack 1 applied yet and I can export the mail at the other two companies with no issues.   Now to figure out why it doesn't work here at the coporate office.
it works with SP1 cause I can do it on my systems.... let me see what I can did up.

Would it help if I paste in the exchange log?
could not hurt
[1/15/2008 3:05:36 PM] [0] Executing Command: 'Export-mailbox -id Jeffc@titancontracting.com  -TargetFolder 'ExportedData' -TargetMailbox Exportmailbox'
[1/15/2008 3:05:38 PM] [0] Searching objects "Exportmailbox" of type "ADUser" under the root "$null".
[1/15/2008 3:05:38 PM] [0] Previous operation run on global catalog server 'commserver.TitanCo.local'.
[1/15/2008 3:05:38 PM] [0] Searching objects "mailserver" of type "Server" under the root "$null".
[1/15/2008 3:05:39 PM] [0] Previous operation run on domain controller 'commserver.TitanCo.local'.
[1/15/2008 3:05:39 PM] [0] Searching objects "MAILSERVER\First Storage Group\Mailbox Database" of type "MailboxDatabase" under the root "$null".
[1/15/2008 3:05:39 PM] [0] Previous operation run on domain controller 'commserver.TitanCo.local'.
[1/15/2008 3:05:39 PM] [0] Searching objects "Jeffc@titancontracting.com" of type "ADUser" under the root "$null".
[1/15/2008 3:05:39 PM] [0] Previous operation run on global catalog server 'commserver.TitanCo.local'.
[1/15/2008 3:05:39 PM] [0] Processing object "TitanCo.local/MyBusiness/Users/SBSUsers/Jeff Chandler".
[1/15/2008 3:05:40 PM] [0] Searching objects "mailserver" of type "Server" under the root "$null".
[1/15/2008 3:05:40 PM] [0] Previous operation run on domain controller 'commserver.TitanCo.local'.
[1/15/2008 3:05:40 PM] [0] Searching objects "MAILSERVER\First Storage Group\Mailbox Database" of type "MailboxDatabase" under the root "$null".
[1/15/2008 3:05:40 PM] [0] Previous operation run on domain controller 'commserver.TitanCo.local'.
[1/15/2008 3:05:43 PM] [0] Ending processing.
[1/15/2008 3:05:43 PM] [0] [jeffc] The operation has started.
[1/15/2008 3:05:43 PM] [0] [jeffc] Approving object.
[1/15/2008 3:05:44 PM] [0] [jeffc] Trying to open mailbox:
      szServerLegacyDN: /o=TITANCO/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Configuration/cn=Servers/cn=MAILSERVER
      szUserLegacyDN: /o=TITANCO/ou=first administrative group/cn=Recipients/cn=jeffc
      szServer: MailServer.TitanCo.local
[1/15/2008 3:05:44 PM] [0] [jeffc] Open mailbox succeeded.
[1/15/2008 3:05:44 PM] [0] [jeffc] The operation has finished.
[1/15/2008 3:05:44 PM] [0] [jeffc] The operation has started.
[1/15/2008 3:05:44 PM] [0] [jeffc] Approving object.
[1/15/2008 3:05:44 PM] [0] [jeffc] Opening source mailbox.
[1/15/2008 3:05:44 PM] [0] [jeffc] Trying to open mailbox:
      szServerLegacyDN: /o=TITANCO/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Configuration/cn=Servers/cn=MAILSERVER
      szUserLegacyDN: /o=TITANCO/ou=first administrative group/cn=Recipients/cn=jeffc
      szServer: MailServer.TitanCo.local
[1/15/2008 3:05:44 PM] [0] [jeffc] Open mailbox succeeded.
[1/15/2008 3:05:44 PM] [0] [jeffc] Opening destination mailbox.
[1/15/2008 3:05:44 PM] [0] [jeffc] Trying to open mailbox:
      szServerLegacyDN: /o=TITANCO/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Configuration/cn=Servers/cn=MAILSERVER
      szUserLegacyDN: /o=TITANCO/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=Exportmailbox
      szServer: MailServer.TitanCo.local
[1/15/2008 3:05:44 PM] [0] [jeffc] Open mailbox succeeded.
[1/15/2008 3:05:44 PM] [0] [jeffc] Creating target folder in the target mailbox.
[1/15/2008 3:05:44 PM] [0] [ERROR] Error was found for Jeff Chandler (jeffc@titancontracting.com) because: Error occurred in the step: Creating target folder in the target mailbox. An unknown error has occurred., error code: -2147221233
[1/15/2008 3:05:44 PM] [0] [jeffc] The operation has finished.
ASKER CERTIFIED SOLUTION
Avatar of scojo
scojo

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks scpjo!!  That did the trick.
you stated in the begining you had fullaccess ?