In my Task Scheduler I had error 0xFFFD0000 as a last run result on one of my Powershell scripts:
It appeared to be a path error to my ps1 script. I apparently had moved the script to another folder to reorganize some things. :)
To run a Powershell script in Powershell, I basically fill in these fields with the following values:
Add Arguments (optional): -File C:\Scripts\myScript\dailyreport.ps1
Start in (optional): <empty>
Any typo may result in a specific error. Here are some examples:
The system cannot find the file specified (800070002)
The field “Program/script” contains an invalid directory
The task is currently running. (041301) hangs
The field “Program/script” contains an invalid executable name extension. For example: powershell.sexe instead of powershell.exe would lead the task to be hanging. In the end, the task will time out after 72 hours.
The field “Add arguments (optional)” contains an invalid argument. For example: -Gile instead of -File could lead to this error.
The field “Add arguments (optional)” contains an invalid file name. For example: you refer to myscript.ps2 instead of myscript.ps1
You may also benefit from an external Microsoft site listing all Success and Error codes:
In addition, I have also experienced other errors according Scheduled Task errors: