title: powershell exchange : how do you setup a scheduled task to run exchange2007 powershell?
body: <p>I'm having trouble setting up a scheduled task (now called Task Scheduler) under the actions tab to run on windows 2007 server. It also has exchange server 2007. </p>
  
  <p>I've tried setting </p>
  
  <p>Program/script : C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
  Add arguments (optional): -psconsolefile exshell.psc1 -command "&amp; {c:\mes-detail\emsbilling08.ps1}"
  Start in (optional): "C:\Program Files\Microsoft\Exchange Server\Bin\</p>
  
  <p>I realize the exshell.psc1 probably also needs an explicit path so I've also tried:</p>
  
  <p>-psconsolefile C:\Program Files\Microsoft\Exchange Server\Bin\exshell.psc1 -command "&amp; {c:\mes-detail\mailall3.ps1}" as well but that doesn't work either</p>
  
  <p>Any ideas? </p>