Powershell command to delete everything in a mailbox
Hey guys,
Is there a simple powershell command I can use to delete everything in a mailbox?
I have a recovery mailbox that I will be doing several restores to, but want to wipe the mailbox prior to each restore.
Either that, or ithere there an overwrite mailbox option in the New-MailboxRestoreRequest command. I can't find it if there is.
May 23rd, 2011 11:22am
You can use the export request to export out to a PST.
http://technet.microsoft.com/en-us/library/ff607299.aspxSukh
Free Windows Admin Tool Kit Click here and download it now
May 23rd, 2011 11:31am
export-mailbox -id 'mailbox' -deletecontent -confirm:$False
This should delete everything from the mailbox. use the -includefolders option to only delete from specific foldersTBrennan
May 23rd, 2011 11:42am