jacass
asked on
Export-Mailbox - will not delete the dumpster
I am running the following script
Export-Mailbox -Identity administrator -PSTFolderPath z:\administrator.pst -deleteassociatedmessages -DeleteContent
This works and the .pst file is created with all the files out of the dumpster as expected.
The report at the end of the export says :
StandardmessagesDeleted : 123
AssociatedMessagesDeleted : 11
DumpsterMessagesDeleted : 117656
The messages from the inbox are deleted as shown in the report but if I run the script again the dumpster files are still there, the report above is the 3rd time I have run the script and with 117,656 messages it takes forever.
Any one know why?
Export-Mailbox -Identity administrator -PSTFolderPath z:\administrator.pst -deleteassociatedmessages -DeleteContent
This works and the .pst file is created with all the files out of the dumpster as expected.
The report at the end of the export says :
StandardmessagesDeleted : 123
AssociatedMessagesDeleted : 11
DumpsterMessagesDeleted : 117656
The messages from the inbox are deleted as shown in the report but if I run the script again the dumpster files are still there, the report above is the 3rd time I have run the script and with 117,656 messages it takes forever.
Any one know why?
it does not remove those messages because they are within the recovery bin
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Check what this Article says:
http://technet.microsoft.com/en-us/library/bb266964.aspx
What Data Is Exported
By default, the Export-Mailbox cmdlet exports all empty folders, special folders, and subfolders to the target location. To specify which folders to include in the export, use the IncludeFolders parameter. To specify which folders to exclude from the export, use the ExcludeFolders parameter.
By default, the following special folders are exported when you use the Export-Mailbox cmdlet:
Inbox
Deleted Items
Drafts
Junk E-Mail
Outbox
Sent Items
Journal
Calendar
Contacts
Notes
Tasks
The Export-Mailbox cmdlet exports all message types, including messages, calendar items, contacts, distribution lists, journal entries, tasks, notes, and documents. However, the Export-Mailbox cmdlet does not export rules.
The Export-Mailbox cmdlet also exports messages from the dumpster. Messages from the dumpster are converted to regular items in the folder or .pst file to which you export data.
http://technet.microsoft.com/en-us/library/bb266964.aspx
What Data Is Exported
By default, the Export-Mailbox cmdlet exports all empty folders, special folders, and subfolders to the target location. To specify which folders to include in the export, use the IncludeFolders parameter. To specify which folders to exclude from the export, use the ExcludeFolders parameter.
By default, the following special folders are exported when you use the Export-Mailbox cmdlet:
Inbox
Deleted Items
Drafts
Junk E-Mail
Outbox
Sent Items
Journal
Calendar
Contacts
Notes
Tasks
The Export-Mailbox cmdlet exports all message types, including messages, calendar items, contacts, distribution lists, journal entries, tasks, notes, and documents. However, the Export-Mailbox cmdlet does not export rules.
The Export-Mailbox cmdlet also exports messages from the dumpster. Messages from the dumpster are converted to regular items in the folder or .pst file to which you export data.
ASKER
OK, is there any way of not including the dumpster in the export?
Try using
Export-Mailbox -Identity administrator -PSTFolderPath z:\administrator.pst -DeleteContent
Export-Mailbox -Identity administrator -PSTFolderPath z:\administrator.pst -DeleteContent
ASKER
Hi Rancy,
Call me blind but what is the difference between yours and the one I used?
Export-Mailbox -Identity administrator -PSTFolderPath z:\administrator.pst -DeleteContent
Export-Mailbox -Identity administrator -PSTFolderPath z:\administrator.pst -deleteassociatedmessages -DeleteContent
Call me blind but what is the difference between yours and the one I used?
Export-Mailbox -Identity administrator -PSTFolderPath z:\administrator.pst -DeleteContent
Export-Mailbox -Identity administrator -PSTFolderPath z:\administrator.pst -deleteassociatedmessages -DeleteContent
I really dont know what this command used in between would do
"-deleteassociatedmessages "
"-deleteassociatedmessages
http://www.simple-talk.com/content/print.aspx?article=655