Deleting item type using Export-mailbox
Hi, I need to export mailbox content from an Exchange 2007 environment where Symantec Enterprise Vault is used for message archiving. Enterprise Vault archives messages and exchanges the original message with a shortcut with item type IPM.Note.EnterpriseVault.Shortcut. What I'd like to do is remove these items (or just leave them on the original server) when exporting mailboxes to .pst files but I can't find a way to do this. Any ideas? Brgds
February 11th, 2010 1:48pm

hi, To export a specific mail sent to all the users in the Exchange 2007 server. RESOLUTION ---------------- 1. To export & delete a specific mail that was sent to all the user with a Subject “"CV Case Rachael Lowenstein". 2. We installed the Exchange server 2007 32-bit Management tools on another 32-bit machine after installing the pre-requisites. 3. Also provided the logged in account Full Access to the mailboxes that we need to export that email. 4. We ran the command as below Get-Mailbox –Server <Servername> | add-mailboxpermission -user Administrator -Accessrights FullAccess 5. We made the account member of Exchange Organization Administrator 6. Installed Outlook 2003 SP3 on the 32 bit machine. 7. We noted the subject of the email to be exported: It is "CV Case Rachael Lowenstein" 8. Then we ran the below command to export the specific email using the Subject word. Get-mailbox -Database "omc-ex01.pollyryon.org\Mailbox Database" | Export-Mailbox -Targetmailbox Exportmailbox -TargetFolder Export -SubjectKeywords "CV Case Rachael Lowenstein" –DeleteContent 9. We followed article http://technet.microsoft.com/en-us/library/bb266964(EXCHG.80).aspx 10. On the target mailbox we found the "Recovered folders" getting created & we successfully exported that particular mail & deleted it from all mailboxes successfully.
Free Windows Admin Tool Kit Click here and download it now
February 12th, 2010 12:50am

Thank you for your suggestion. Problem is, there can be ANY subject and text in the shortcut left by Enterprise Vault. All that makes it different than a normal mail for the user is the message icon and the item typ. What I need to do is select messages based on the item type since I want to get rid of ALL messages of the type IPM.Note.EnterpriseVault.Shortcut. If only export-mailbox had a switch for -itemtype... Brgds
February 15th, 2010 1:15pm

Hi,Export-mailbox have not a switch for -itemtype. Export-Mailboxhttp://technet.microsoft.com/en-us/library/aa998579(EXCHG.80).aspxBy the way, IPM.Note.EnterpriseVault.Shortcut should be called "Message Class".And export-mailbox haven't a switch for -MessageClass.There are two solution of your question:1, use outlook 2007 "Advanced Find" -> Advanced->Field-> All mail fields-> Message Class, to delete the mails manually.2, you can use New-ManagedContentSettings with switch -MessageClass to create new managed content setting. How to Create Managed Content Settings<!----> http://technet.microsoft.com/en-us/library/aa996014(EXCHG.80).aspx<!---->Frank Wang
Free Windows Admin Tool Kit Click here and download it now
February 16th, 2010 10:15am

Thank you! I'm aware that export-mailbox doesn't have -messageclass (or itemtype) switch, it was a wish. I'll definitely have a look at your suggestions. Managed Content Settings is perhaps the most interesting for my scenario. Brgds
February 16th, 2010 11:15am

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

Other recent topics Other recent topics