image-2

How to Fix PowerShell Script Won’t Execute as a Windows Scheduled Task

Issue like below: I have a PowerShell script (that works). In Windows Task Scheduler I created a new task to execute “C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe”, passing the argument as my PS1 script. When the task runs I get a Last Run Result of 0x1. I updated my script to write to a log file when the script opens and that Read More