Wednesday, December 13, 2017

delete message from subject

need csv file with the title Alias

import-csv usercnit.csv | ForEach { Search-Mailbox  $_.alias  -Force:$True -SearchQuery 'Subject:"private message"' -DeleteContent  }

 

Login