locked
Creating scheduled task to run powershell script RRS feed

  • Question

  • Hi all,

    been following this guide on how to create scheduled task to run a .ps1 script:

    http://blogs.technet.com/b/heyscriptingguy/archive/2012/08/11/weekend-scripter-use-the-windows-task-scheduler-to-run-a-windows-powershell-script.aspx

    When I manually run this task,in the history it says success, but it doesnt work.

    The script should create a report and send me an e-mail.It works fine if i run it manually in Windows powershell or Powershell ISE.

    I cannot see that a new report have been created either.

    Anything im missing here?

    Been using same account to run it manually and the one using in task scheduler.

    thanks!


    Please mark as helpful if you find my contribution useful or as an answer if it does answer your question. That will encourage me - and others - to take time out to help you. Thank you! Off2work

    Saturday, April 25, 2015 3:19 PM

Answers

  • even from run it worked.

    I managed to figure out the reason, hadd to add .exe after powershell.

    Now all is good,thanks!


    Please mark as helpful if you find my contribution useful or as an answer if it does answer your question. That will encourage me - and others - to take time out to help you. Thank you! Off2work

    • Marked as answer by Off2work Saturday, April 25, 2015 3:48 PM
    Saturday, April 25, 2015 3:48 PM

All replies