Search-Mailbox command to delete messages will not run using Powershell script
Posted on 2015-02-05
I have tried to run this script as directed by my research but it still gives me a " position parameter cannot be found that accepts argument ' -DeleteContent'
[PS] C:\Windows\system32>Search-Mailbox -Identity root-arl -SearchQuery "Received:<$(01/01/2015)", "From:(root@ARLCTXLOG
)" -DeleteContent -Force
I do not want to send these log file emails to another mailbox folder but get rid of them perm.