Quantcast
Channel: Exchange Server 2013 - General Discussion forum
Viewing all articles
Browse latest Browse all 4521

Script for Search-Mailbox and the Result

$
0
0

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 

 

 


Viewing all articles
Browse latest Browse all 4521

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>