I have Windows Server 2012 R2 Standard installation. I have a requirement for PowerShell scripts to be run automatically, for this I use the Windows Task Scheduler to launch the powershell.exe program.
Recently my scheduled tasks have been failing with a last run result error 0x1, and very little other details.
Task Scheduler no longer seems to recognise what “powershell.exe” is or what application to launch, hence why the jobs are failing.
To resolve the problem in the program/script field replace “powershell.exe” with the full path name “C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe” and click OK.
In my scenario no other change was required.
Disclaimer: provided “AS IS” with no warranties and confer no rights