To run a Exchange 2007 Powershell script as a scheduled task you need to call the Exchange Shell as part of the command eg:
powershell -psconsolefile "C:\Program Files\Microsoft\Exchange Server\bin\exshell.psc1" -command "& 'your script.ps1' "
Designing & deploying IT infrastructure in the enterprise
12
Feb
To run a Exchange 2007 Powershell script as a scheduled task you need to call the Exchange Shell as part of the command eg:
powershell -psconsolefile "C:\Program Files\Microsoft\Exchange Server\bin\exshell.psc1" -command "& 'your script.ps1' "
Possibly related posts (auto generated):
Tags: Exchange 2007, powershell, Scheduled Task
When I do good, I feel good; when I do bad, I feel bad. That’s my religion..
— Abraham Lincoln
Related Articles
No user responded in this post
Leave A Reply