Creating scheduled task to run powershell script


hi all,

been following guide on how create scheduled task run .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 manually run task,in history says success, doesnt work.

the script should create report , send me e-mail.it works fine if run manually in windows powershell or powershell ise.

i cannot see new report have been created either.

anything im missing here?

been using same account run manually , 1 using in task scheduler.

thanks!


please mark helpful if find contribution useful or answer if answer question. encourage me - , others - take time out you. thank you! off2work

even run worked.

i managed figure out reason, hadd add .exe after powershell.

now good,thanks!


please mark helpful if find contribution useful or answer if answer question. encourage me - , others - take time out you. thank you! off2work



Windows Server  >  Windows PowerShell



Comments

Popular posts from this blog

Edit Group Policy

Hyper-V VM not reaching OS 'Logon' screen

DNS question...