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.
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.