I have a powershell script that if I open Powershell (right click> run as administrator) and post the code it works just fine. However when I try to create a task in task scheduler, the script will not work. I am assuming I need to sign the powershell script. I searched for a fix and came up with a Command that uses "makecert" however when I try to run it I get" 'makecert' is not recognized as an internal or external command.
Asked
Active
Viewed 57 times
1 Answers
1
you can just use "-ExecutionPolicy Bypass" in the program task arguments.

user3414794
- 36
- 5
-
You are a genius! worked like a charm! thank you very much! – Spidy Mar 28 '19 at 17:04