import-mailbox/export-mailbox fails on "Approving Object" - Permissions Issue?
Below is the migration logfile when attempting a PST import. The names and domain output has been changed to protect the guilty: [11/10/2009 11:14:01 AM] [0] Executing Command: 'Import-Mailbox -id testUser -PSTFolderPath e:\pstfiles\testUser.pst -Confirm: $false'[11/10/2009 11:14:01 AM] [0] Trying to open registry key 'Software\\Microsoft\\Windows\\CurrentVersion\\App Paths\\OUTLOOK.EXE'.[11/10/2009 11:14:01 AM] [0] The default value of the registry key is 'C:\PROGRA~1\MICROS~4\OFFICE11\OUTLOOK.EXE'.[11/10/2009 11:14:01 AM] [0] The version of Outlook.exe is '11.0.8312'.[11/10/2009 11:14:01 AM] [0] Searching objects "testUser" of type "ADUser" under the root "$null".[11/10/2009 11:14:01 AM] [0] Previous operation run on global catalog server 'fsmo.domain.local'.[11/10/2009 11:14:01 AM] [0] Processing object "domain.local/Users/Test User".[11/10/2009 11:14:01 AM] [0] Searching objects "xchg" of type "Server" under the root "$null".[11/10/2009 11:14:01 AM] [0] Previous operation run on domain controller 'fsmo.domain.local'.[11/10/2009 11:14:01 AM] [0] Searching objects "XCHG\First Storage Group\Mailbox Database" of type "MailboxDatabase" under the root "$null".[11/10/2009 11:14:01 AM] [0] Previous operation run on domain controller 'fsmo.domain.local'.[11/10/2009 11:14:01 AM] [0] Ending processing.[11/10/2009 11:14:01 AM] [0] [testUser] The operation has started.[11/10/2009 11:14:01 AM] [0] [testUser] Initializing MAPI, loading library.[11/10/2009 11:14:01 AM] [0] [testUser] Approving object.[11/10/2009 11:14:01 AM] [0] [ERROR] Error was found for Test User (testUser@domain.com) because: Error occurred in the step: Approving object. An unknown error has occurred., error code: -2147221233[11/10/2009 11:14:01 AM] [0] [testUser] The operation has finished. The host is W3KR2 x86 and is the domain/FSMO master. Outlook 2003 is installed, with an active account. E2K7SP1EN32.exe is installed for the 32 bit environment. Everything is up to date on patches via Windows Update. Exchange Power Shell is being run under the Administrator account. The Administrator is dual role for domain and Exchange and is a member of the following groups: AdministratorsDomain AdminsDomain UsersEnterprise AdminsExchange Organization AdministratorsGroup Policy Creator OwnersSchema Admins As you can see from the above log, the error occurs when "Approving object". This happens on both import-mailbox and export-mailbox functions. This implies a permissions issue that's still unresolved. While I wait for a helpful response, I'm going to set this up on a WXP machine and try again. Any input is obviously appreciated.
November 10th, 2009 10:32pm

As you say: "This implies a permissions issue that's still unresolved." Domain Admins and Enterprise Admins usually do not have Send as and Receive as permission on the mailbox store. Take a look here:Unable to export a PST file using Exchange management console in Exchange http://social.technet.microsoft.com/Forums/en-US/exchangesvrgeneral/thread/151b60d3-3045-471a-a717-71408e72e286 Even more here:1.Create a New User account (EX: ExportAdmin)2.Add this account to a Exchange Server Administrator Permission Both Source and Target Exchange Mailbox Server3.Add this account to Local Administrators Group Member Both Source and Target Exchange Mailbox Server4.Make sure this account DO NOT HAVE ANY Domain Admin/Exterprise Admin permission(Just keep Domain User group permission)5.Assign Mailbox Full Access to this account by follow Cmdlet6.Get-Mailbox -Server "EX-CCR" | Add-MailboxPermission -User ExportAdmin -AccessRights FullAccess7.Runas with ExportAdmin account (Open EMC)8.Get-Mailbox -Server "EX-CCR" | Export-Mailbox -PSTFolderPath9.Done Export-mailbox MAPI errorhttp://social.technet.microsoft.com/Forums/en-US/exchangesvrmigration/thread/18140f1b-9f5d-427c-b733-f6047811ecd8 Take also a look at Frank Wang's answer:export mailbox errorhttp://social.technet.microsoft.com/Forums/en/exchangesvradmin/thread/1fd9a60c-b270-4c7d-a8af-3aa4192cd7f4 For reference:Replacing ExMerge by Import-Mailbox and Export-Mailboxhttp://www.exchangeinbox.com/article.aspx?i=102 Using Exchange Management Shell to Export mailbox data in Exchange Server 2007http://msexchangeguru.com/2009/09/02/exportmailbox/MCTS: Messaging | MCSE: S+M | Small Business Specialist
Free Windows Admin Tool Kit Click here and download it now
November 11th, 2009 1:24am

Kudos, Mr. Smith. For we "casual" administrators of AD, Exchange, Web Servers, ad nauseum in small organizations (I have around 290 users), we're obviously in saran wrap mode, so know a little about a lot. Your response was the most lucid of those that I'd waded through.Thanks for taking the time to respond...
November 11th, 2009 9:45pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics