Exchange PST export from 2007 CMD Shell
Hi, I tried this and got: You may have to create the PSConfiguration folder and Microsoft.PowerShell_profi le.ps1 file. After you've done that, you can add your favorite functions and ali ases, which will be loaded every time that the Exchange Management Shell is open ed. [PS] C:\Documents and Settings\davec\Desktop>Export-Mailbox -Identity celiaf Sav ePath c:\junk\celiaf.pst Export-Mailbox : A positional parameter cannot be found that accepts argument ' SavePath'. At line:1 char:15 + Export-Mailbox <<<< -Identity celiaf SavePath c:\junk\celiaf.pst + CategoryInfo : InvalidArgument: (:) [Export-Mailbox], Parameter BindingException + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.Exchange.M anagement.RecipientTasks.ExportMailbox [PS] C:\Documents and Settings\davec\Desktop> What did I do wrong? Brian
June 18th, 2012 12:41pm

ROUND TWO - added outlook 2003 to server - patched to SP2 - ran it again and got this: [PS] C:\Documents and Settings\davec\Desktop>Export-Mailbox -Identity celiaf@xxxxxxcom.ab.ca -PSTFolderPath c:\junk\celiaf.pst Confirm Are you sure you want to perform this action? Exporting mailbox content from the mailbox 'Celia Flores' into .pst file 'c:\junk\celiaf.pst'. This operation may take a long time to complete. [Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):A Export-Mailbox : Error was found for Celia Flores (celiaf@xxxxxxcom.ab.ca ) because: Error occurred in the step: Moving messages. Failed to copy messages to the destination mailbox store with error: MAPI or an unspecified service provider. ID no: 00000000-0000-00000000, error code: -1056749164 At line:1 char:15 + Export-Mailbox <<<< -Identity celiaf@xxxxxxcom.ab.ca -PSTFolderPath c: \junk\celiaf.pst + CategoryInfo : InvalidOperation: (0:Int32) [Export-Mailbox], Re cipientTaskException + FullyQualifiedErrorId : EB2B81D6,Microsoft.Exchange.Management.Recipient Tasks.ExportMailbox Identity : xxxxxxcom.ab.ca/managers/Celia Flores DistinguishedName : CN=Celia Flores,OU=managers,DC=xxxxxxxcom,DC=ab,DC=ca DisplayName : Celia Flores Alias : celiaf LegacyExchangeDN : /o=GXXXXX XXXXX/ou=GXXXXXX.CAL.AB.CA/cn =RECIPIENTS/cn=CELIAF PrimarySmtpAddress : celiaf@xxxxxxxcom.ab.ca SourceServer : exchange1.xxxxxxxcom.ab.ca SourceDatabase : EXCHANGE1\Fifth Storage Group\fifthdatabase SourceGlobalCatalog : DOCSERV SourceDomainController : TargetGlobalCatalog : DOCSERV TargetDomainController : TargetMailbox : TargetServer : TargetDatabase : MailboxSize : 1434696KB IsResourceMailbox : False SIDUsedInMatch : SMTPProxies : SourceManager : SourceDirectReports : SourcePublicDelegates : SourcePublicDelegatesBL : SourceAltRecipient : SourceAltRecipientBL : SourceDeliverAndRedirect : MatchedTargetNTAccountDN : IsMatchedNTAccountMailboxEnabled : MatchedContactsDNList : TargetNTAccountDNToCreate : TargetManager : TargetDirectReports : TargetPublicDelegates : TargetPublicDelegatesBL : TargetAltRecipient : TargetAltRecipientBL : TargetDeliverAndRedirect : Options : Default SourceForestCredential : TargetForestCredential : TargetFolder : PSTFilePath : c:\junk\celiaf.pst RsgMailboxGuid : RsgMailboxLegacyExchangeDN : RsgMailboxDisplayName : RsgDatabaseGuid : StandardMessagesDeleted : 0 AssociatedMessagesDeleted : 0 DumpsterMessagesDeleted : 0 MoveType : ExportToPST MoveStage : Move StartTime : 6/18/2012 10:41:06 AM EndTime : 6/18/2012 10:41:06 AM StatusCode : -1056749164 StatusMessage : Error occurred in the step: Moving messages. Failed to copy messages to the destination mailbox store with error: MAPI or an unspecified service provider. ID no: 00000000-0000-00000000 ReportFile : C:\Program Files\Microsoft\Exchange Server\L ogging\MigrationLogs\export-Mailbox20120618- 104048-7887629.xml [PS] C:\Documents and Settings\davec\Desktop>
Free Windows Admin Tool Kit Click here and download it now
June 18th, 2012 1:07pm

On Mon, 18 Jun 2012 16:22:30 +0000, Brian Close wrote: > > >Hi, > > > >I tried this and got: > > > >You may have to create the PSConfiguration folder and Microsoft.PowerShell_profi le.ps1 file. After you've done that, you can add your favorite functions and ali ases, which will be loaded every time that the Exchange Management Shell is open ed. > >[PS] C:\Documents and Settings\davec\Desktop>Export-Mailbox -Identity celiaf Sav ePath c:\junk\celiaf.pst Export-Mailbox : A positional parameter cannot be found that accepts argument ' SavePath'. At line:1 char:15 + Export-Mailbox <<<< -Identity celiaf SavePath c:\junk\celiaf.pst + CategoryInfo : InvalidArgument: (:) [Export-Mailbox], Parameter BindingException + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.Exchange.M anagement.RecipientTasks.ExportMailbox > >[PS] C:\Documents and Settings\davec\Desktop> > > > >What did I do wrong? Exchange 2007? Use "-PSTFolderPath". It looks like you're trying to use a parameter named "SavePath" (and didn't put a "-" in front of then name which doesn't help). --- Rich Matheisen MCSE+I, Exchange MVP --- Rich Matheisen MCSE+I, Exchange MVP
June 18th, 2012 6:13pm

On Mon, 18 Jun 2012 16:48:14 +0000, Brian Close wrote: > > >ROUND TWO > >- added outlook 2003 to server - patched to SP2 > >- ran it again and got this: > > > >[PS] C:\Documents and Settings\davec\Desktop>Export-Mailbox -Identity celiaf@xxxxxxcom.ab.ca -PSTFolderPath c:\junk\celiaf.pst > >Confirm Are you sure you want to perform this action? Exporting mailbox content from the mailbox 'Celia Flores' into .pst file 'c:\junk\celiaf.pst'. This operation may take a long time to complete. [Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):A Export-Mailbox : Error was found for Celia Flores (celiaf@xxxxxxcom.ab.ca ) because: Error occurred in the step: Moving messages. Failed to copy messages to the destination mailbox store with error: MAPI or an unspecified service provider. ID no: 00000000-0000-00000000, error code: -1056749164 At line:1 char:15 + Export-Mailbox <<<< -Identity celiaf@xxxxxxcom.ab.ca -PSTFolderPath c: \junk\celiaf.pst + CategoryInfo : InvalidOperation: (0:Int32) [Export-Mailbox], Re cipientTaskException + FullyQualifiedErrorId : EB2B81D6,Microsoft.Exchange.Management.Recipient Tasks.ExportMailbox Do you have the necessary permission on the mailbox? --- Rich Matheisen MCSE+I, Exchange MVP --- Rich Matheisen MCSE+I, Exchange MVP
Free Windows Admin Tool Kit Click here and download it now
June 18th, 2012 6:19pm

Hi For the cmdlet Export-Mailbox The user account must meet the following requirements Exchange Server Administrator role and local Administrators group for the target serverFull access to the source and target mailboxes First requirement is quite simply, if you are system administrator and have not change any permission from the default setting. For second requirement, we can use Add-MailboxPermission CMDLET and specify FullAccess for the AccessRights parameter. It can be simply done by the following command to set the Full Access to all mailbox users. Get-Mailbox -identity celiaf | Add-Mailboxpermission User Administrator Accessrights Fullaccess Then you could run Export-Mailbox CheersZi Feng TechNet Community Support
June 19th, 2012 4:49am

Hi Zi, I tried that command and got back this: [PS] C:\Documents and Settings\davec\Desktop> [PS] C:\Documents and Settings\davec\Desktop>Get-Mailbox -identity celiaf | Add- Mailboxpermission -User Administrator -Accessrights Fullaccess Add-MailboxPermission : The specified user or group "Administrator" is a local user or group and is not supported on a computer that does not have ADAM instal led. At line:1 char:53 + Get-Mailbox -identity celiaf | Add-Mailboxpermission <<<< -User Administrato r -Accessrights Fullaccess + CategoryInfo : InvalidData: (:) [Add-MailboxPermission], Cannot HaveLocalAccountException + FullyQualifiedErrorId : 5B56F6DB,Microsoft.Exchange.Management.Recipient Tasks.AddMailboxPermission [PS] C:\Documents and Settings\davec\Desktop> What is ADAM ? Brian
Free Windows Admin Tool Kit Click here and download it now
June 20th, 2012 1:10pm

On Wed, 20 Jun 2012 16:58:58 +0000, Brian Close wrote: > > >Hi Zi, > > > >I tried that command and got back this: > >[PS] C:\Documents and Settings\davec\Desktop> [PS] C:\Documents and Settings\davec\Desktop>Get-Mailbox -identity celiaf | Add- Mailboxpermission -User Administrator -Accessrights Fullaccess Add-MailboxPermission : The specified user or group "Administrator" is a local user or group and is not supported on a computer that does not have ADAM instal led. At line:1 char:53 + Get-Mailbox -identity celiaf | Add-Mailboxpermission <<<< -User Administrato r -Accessrights Fullaccess + CategoryInfo : InvalidData: (:) [Add-MailboxPermission], Cannot HaveLocalAccountException + FullyQualifiedErrorId : 5B56F6DB,Microsoft.Exchange.Management.Recipient Tasks.AddMailboxPermission > >[PS] C:\Documents and Settings\davec\Desktop> You might want to add the domain name in front of the account: domain\account. "Administrator" exists in the AD domain and in the local SAM. >What is ADAM ? Active Directory Applications Mode. The acronym has been replaced by "AD LDS" (Active Directory Lightweight Directory Services). --- Rich Matheisen MCSE+I, Exchange MVP --- Rich Matheisen MCSE+I, Exchange MVP
June 20th, 2012 6:06pm

On Wed, 20 Jun 2012 16:58:58 +0000, Brian Close wrote: > > >Hi Zi, > > > >I tried that command and got back this: > >[PS] C:\Documents and Settings\davec\Desktop> [PS] C:\Documents and Settings\davec\Desktop>Get-Mailbox -identity celiaf | Add- Mailboxpermission -User Administrator -Accessrights Fullaccess Add-MailboxPermission : The specified user or group "Administrator" is a local user or group and is not supported on a computer that does not have ADAM instal led. At line:1 char:53 + Get-Mailbox -identity celiaf | Add-Mailboxpermission <<<< -User Administrato r -Accessrights Fullaccess + CategoryInfo : InvalidData: (:) [Add-MailboxPermission], Cannot HaveLocalAccountException + FullyQualifiedErrorId : 5B56F6DB,Microsoft.Exchange.Management.Recipient Tasks.AddMailboxPermission > >[PS] C:\Documents and Settings\davec\Desktop> You might want to add the domain name in front of the account: domain\account. "Administrator" exists in the AD domain and in the local SAM. >What is ADAM ? Active Directory Applications Mode. The acronym has been replaced by "AD LDS" (Active Directory Lightweight Directory Services). --- Rich Matheisen MCSE+I, Exchange MVP --- Rich Matheisen MCSE+I, Exchange MVP
Free Windows Admin Tool Kit Click here and download it now
June 20th, 2012 6:18pm

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

Other recent topics Other recent topics