export-mailbox , Date Based, PST then delete?
I have a user that has a 6.7GB mailbox and wantes it archvied from say Jan 1, 2011 back dumped to PST and remvoed from exchange.
I know I can "export-mailbox -id user@mail.com -pstfolderpath c:\user.pst" Do that all the time. I assume I would add "-enddate 01/01/2011" that would be evertyhging PRIOR to
that date would get placed in PST. how do you then delete it? This guy has 1000's of folders etc. What would my command look like
Thanks, Grady Vogt
August 22nd, 2011 12:51pm
What version of Exchange?Troy Werelius
www.Lucid8.com
Search, Recover, & Extract Mailboxes, Folders, & Email Items from Offline EDB's and Live Exchange Servers with Lucid8's DigiScope
Free Windows Admin Tool Kit Click here and download it now
August 22nd, 2011 4:06pm
The -DeleteContent flag is what you want to use and here is an article that references the command. http://technet.microsoft.com/en-us/library/bb266964(EXCHG.80).aspx
I would suggest that you create a sample account to test with first to ensure that you get the desired results.Troy Werelius
www.Lucid8.com
Search, Recover, & Extract Mailboxes, Folders, & Email Items from Offline EDB's and Live Exchange Servers with Lucid8's DigiScope
August 22nd, 2011 4:13pm
Hi Grady,
I think you are using Exchange 2007 (because you use command export-mailbox) and I tested in my lab (Exchange 2007 SP3), you can use these commands to achieve the
goal:
<1> When you want to export everything (prior to a Date) placed in PST file, you can use this command:
Export-Mailbox –identity user@mail.com –EndDate “01/01/2011” –PSTFolderPath C:\user.pst
<2>If you want delete all the contents after you export to a PST file, you can use this command:
Export-Mailbox –identity user@mail.com –EndDate “01/01/2011” –PSTFolderPath C:\user.pst –DeleteContent
I think Troy’s suggestion is good, it is better for you test these commands on a sample account ( check whether the result is your required) before you use on
user’s mailbox.
Thanks,
Evan Liu
TechNet Subscriber Support
in forum
If you have any feedback on our support, please contact
tngfb@microsoft.com
Free Windows Admin Tool Kit Click here and download it now
August 23rd, 2011 1:51am