Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Using Task Scheduler for a powershell script on server 2008

$
0
0
I have a powershell script I am trying to run as a scheduled task, but I cannot get it to run. if I run in from within powershell or in an elivated command prompt it runs fine. Task Scheduler says it completes, but nothing happens. Here is the action I am using in Task Scheduler:

C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -noninteractive -nologo -command "& {d:\backup\createVM.ps1}"

I do have powershell set to "allsigned" and my script is signed. (it was a pain to do , but I decided the added security was worth it)
I have also tried running it as System and the local admin, but that does not seem to matter.

Viewing all articles
Browse latest Browse all 15028

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>