In short, I want to run this command:
search-mailbox -identity administrator -searchquery "received:<$('11/16/2012')" -deletecontent
Unfortunately, I receive the error:a positional parameter cannot be found that accepts argument '-deletecontent'...
I created a universal security group w/the Mailbox Import Export role, confirmed the user is apart of the role, restarted the exchange shell, restart the vm, but I keep getting that error.
get-managementroleassignment -role "Mailbox Import Export" | ft identity confirms the current account should have the role.
What could cause this and how can I fix it?
I'd really like to get exchange working so that I can go live with it.
Thanks!