Windows Server

Error: Failed to create a new scheduled task name. RemoteException: Cannot create the file when that file already exists

Scenario 1: The following error below is prompted when you wish to create a scheduled tasks in Windows Admin Center. On how to create a scheduled task on Windows Admin Center, see https://techdirectarchive.com/2020/03/26/how-to-create-a-scheduled-task-with-windows-admin-center/

Solution: 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.
Solution: Launch and search the 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: Please see a similar error resolved here https://docs.infrascale.com/kb/troubleshooting/cb/error-obrm-cannot-create-file-when-that-file-already-exists

– On how to setup Windows Admin Center, click on this link
– On how to update install, update and uninstall extensions in Windows Admin Center, see here

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x