Hello Team
am looking for the small script to delete the particular email from all the mailboxes in the exchange 2013 environment
Currently am doing to delete by the below commnad
Get-mailbox -results Unlimited | search-mailbox –searchquery “Subject:’Virus Name’” –LogLevel Full –Targetmailbox "Test Mailbox" –Targetfolder "FolderName" –DeleteContent
Am looking for the script which should ask only for the Subject Name to search and delete
Enter the Subject Name for deletion : Virus Name
Once we enter the Subject name , it should start delete the emails from all the mailboxes
finally it should give the results for which are the mailboxes are deleted successfully and not successfully in CSV format
is that achievable ? Please help me