On a Windows Server 2012 R2 Build 9600, I have a Scheduled Task that runs successfully on demand.
I need it to run every hour every day.
if I change it to "Run Hourly, Every Day", it fails with error codes: 0xFFFD0000 and 4294770688, which stands for "The field “Add arguments (optional)” contains an invalid file name".
This is a bit odd, because everything is ok on that field and this only happens with that schedule combination.
As example, If I schedule it to run once a day at some time, it runs ok.
Best Regards to All
23 Answers
In my case, I had an action which called powershell. I had to quote the script file path in double quotes (") instead of single quotes (').
So, this error code may have different reasons.
0I got it to work.
I had to set it up to "Run Once, Every Hour, Indefinitely"
Like: Run "One time, Start at 0h00, Repeat Task Every 1 hour, Indefinitely"
Also do not use the trigger option Stop Task if it runs longer than because it will throw back the 0xFFFD0000 error. Use it on the Settings instead.
I got the same error code and have fixed it by moving powershell script to a folder with no spaces in the file path. In full, the Add arguments field is:
-noprofile -ExecutionPolicy Bypass -File C:\users\myname\powershell_testing\my_powershell_script.ps1 1