Schedule Task to run Exchange PowerShell Command
Sometimes we may need to frequently run Exchange commands to export data or run Script to force changes , please flow below Steps for creating new Task in Exchange 2010
- From Start Menu type Task Scheduler in the search Window
- In the Task scheduler window right click Create Task
- In the new Task window type Name of your Task (e.g. Start EX Service)

4. Go to Trigger Tab and select New and chose your schedule
5. Go to action Tab and select
new then in Action tab select start a program
A.
In the (Program/script)
tab type : (C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe)
B.
Then go to Add arguments Tab and type (-command ". 'C:\Program
Files\Microsoft\Exchange Server\V14\bin\RemoteExchange.ps1';
Connect-ExchangeServer -auto; "Start-Service MSExchangeRPC""
)
6. In the Actions
Tab click new to configure the task to
send you mail whenever it start
7. In the Action
drop-down list chose Send an e-mail
8. Type email address (From
and TO) and type IP or Name of your SMTP Server
9. Press OK Twice to finish
10. You can test the Task by
stopping the service then go to task and right click à Run


