PDA

View Full Version : Creating scheduled task that runs a power shell script.



AlexGor
06-30-2013, 10:29 AM
Hi. I am struggling to create scheduled task that will execute power shell script.
I Cannot find any tutorial(one full example at least) that shows how to create scheduled task.
I found only the documentation that not help if you do this for the first time.
Thanks.

phill_mn
07-01-2013, 08:12 AM
Did you do the steps detailed here:
http://kb.flexerasoftware.com/doc/Helpnet/installshield19helplib/helplibrary/STasks-Adding.htm

The question combines to issues. 1)creating a scheduled task in MSI and 2) interacting with power shell from an MSI. I would break the problem into two steps and just create a task that does not use power shell, and then focus on the power shell using info from here:
http://blogs.technet.com/b/heyscriptingguy/archive/2011/01/12/use-scheduled-tasks-to-run-powershell-commands-on-windows.aspx