Delete/remove Spam Mail Folder in all mailboxes
How can I delete a folder (Spam Mail) left by an antivirus upgrade?I've contacted the AV maker, and their answer was to ask all the users to delete it manually usign PS, but I wanted to delete them all myself.
May 13th, 2009 7:37pm
Hello Paulo,You can try the following syntax.Get-mailbox -database 'DB1' | export-mailbox -ContentKeywords "virus" -TargetFolder "VirusMessages" -TargetMailbox Administrator DeleteContent Source:Exchange Server 2007 Export Mailbox task http://msexchangeteam.com/archive/2006/11/28/431669.aspxArun Kumar | MCSE - 2K3 + Messaging | ITIL-F V3
Free Windows Admin Tool Kit Click here and download it now
May 13th, 2009 10:18pm
Hello Arun,Thank you for your answer, but I probably haven't explained myself correctly.What I want is to delete a folder (at the sames level as the Inbox folder)and all the contents, not a message with a specific word like "Spam" or "Virus".Paulo
May 14th, 2009 12:02pm
Hi,There is no command could achieve your need.ThanksAllen
Free Windows Admin Tool Kit Click here and download it now
May 15th, 2009 1:24pm
Yes Agree with Allen- There is no such cmdlet to achieve your need!Arun Kumar | MCSE - 2K3 + Messaging | ITIL-F V3
May 16th, 2009 6:27pm