The following error below was prompted when i was creating a scheduled task with Windows Admin Center, see the link for how this is configured https://techdirectarchive.com/2020/03/26/how-to-create-a-scheduled-task-with-windows-admin-center/
In my case, the Windows firewall excluded the program executable, causing Windows Admin Center to fail loading the application.
Solution: I removed the file from the exclusion list in the Windows firewall, but I still encountered the error message Failed to create scheduled task due to Windows Server.
– You can have the firewall rule deleted.
Note: In your environment, “Failed to create scheduled task due to Windows Server” – this solution might not work. Take a look at your event viewer for further error analysis. See the link for a similar solution.