none
Powershell command

    Question

  • Hi,

    I am using exch 2010. I having problem with user 'bob'. I tried to delete him email from deleted item but the email still there. Can someone help me with powershell command to delete bob's email in deleted item with subject name "task for nextweek". Thank you.


    jaie

    Friday, March 02, 2012 9:18 AM

Answers

  • Hi,

    Search entire mailbox and delete the required subject: Get-Mailbox -ResultSize unlimited | Search-Mailbox -SearchQuery subject:"task for nextweek" -DeleteContent

    Search bob's mailbox and delete the required subject: Get-Mailbox -ResultSize unlimited | Search-Mailbox identity bob@company.com -SearchQuery subject:"task for nextweek" -DeleteContent


    Regards from www.windowsadmin.info | www.blog.windowsadmin.info

    Friday, March 02, 2012 9:30 AM