
Windows Task Scheduler enables you to perform routine tasks in Windows on individual PCs. Task Scheduler does this by monitoring whatever criteria you choose. This is referred to as “triggers” and then executing the tasks when those criteria are met. In this guide, you will learn how to resolve the following error “Failed to create a new scheduled task name RemoteException: Cannot create the file when that file already exists. In this link, you may also want to learn about Task schedule triggers. Here are some related articles on Windows Task Scheduler: How to create an advanced scheduled task on Windows Server with Windows Task Scheduler, how to export and import scheduled tasks on Windows Server with the Task scheduler and PowerShell, how to automate Windows Update with PowerShell and Task Scheduler, and how to create a scheduled task with Windows Admin Center.
Scenario 1
The following error below is prompted when you wish to create a scheduled task in Windows Admin Center. On how to create a scheduled task on Windows Admin Center. Kindly refer to these related guides: Determine the number of MBAM Recoveries performed: Execute Python Script in Windows Task Scheduler

The solution to fix Failed to create a new scheduled task name. RemoteException: Cannot create the file when that file already exists
As the error message implies, the name “WindowsUpdate” has been used previously. Simply choose a new name for the scheduled tasks. If this scenario is different from yours,
Scenario 2
If this scenario is different from your scenario, the said task “name” has been deleted and this same error is still prompted. Here are ways to fix it. The TaskCache is maintained automatically, in this case, some entries were not removed automatically when the task was deleted.
The solution to fix Failed to create a new scheduled task name. RemoteException: Cannot create the file when that file already exists
Launch and search the “Registry” and delete any keys that contain the non-valid scheduled task name that is found in them.
HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Schedule\TaskCache\Tasks
HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Schedule\TaskCache\Tree
This will allow the reuse of the task name. Other users with this scenario may also have to delete entries found in the following path as shown below containing the task name. Usually, this will already be deleted.
C:\Windows\System32\Tasks
Scenario 3
On how to set up Windows Admin Center, click on this link . On how to update install, update, and uninstall extensions in Windows Admin Center, see here
I hope you found this blog post helpful. If you have any questions, please let me know in the comment session.