Reputation: 60871
I would like to know how to run a file like this:
Search-Mailbox -Identity arrwest -SearchQuery “Subject:MLIS Volume Report”,”From:cmctrymullin”,”Sent:today” -DeleteContent
Search-Mailbox -Identity ceringle -SearchQuery “Subject:MLIS Volume Report”,”From:cmcmtrullin”,”Sent:today” -DeleteContent
etc
I have about 1000 lines that I need to run in the exchange 2010 powershell
How do I do this?
Upvotes: 0
Views: 110
Reputation: 174900
Issue this command in the shell before executing your script:
$ConfirmPreference = "None"
Upvotes: 1