Task scheduler : Exit code is 0xFFFD0000

In this example I am using Windows Server 2008 R2 to schedule a PowerShell script to run. But my script failed with the exit code : 0xFFFD0000

There are many reasons :

1/ You have to use the full path to powershell.exe, otherwise it will not recognize it properly and fail to run your task.

2/ You have to use the full path to your script path. Not only **myScriptPowershell.ps1** because Powershell.exe will open to the default location (C:\Windows\System32) and don’t find it.

Conclusion :

Put the “-file” argument with full path of powershell.exe and your script.

ps1

Don’t forget to select :

ps2

About Nicolas 244 Articles
I work as a System Engineer, based in Switzerland with a primary focus on Microsoft technologies. I have 7 years experience in administering Windows Servers. . I am a Microsoft MVP for Cloud & Datacenter Management. I also received the PowerShell Hero 2016 award by PowerShell.0rg. And finally, I am "MCSE: Cloud Platform and Infrastructure", "MCSA: Windows Servers" and "Administering & Deploying SCCM" certified.

Leave a Reply