WinSrvr 2012 r2 tip: getting “Task Scheduler “A task or folder with this name already exists” ?

Have seen this pesky one in the past with 2008 r2 as well.

Can get this sometimes when you try and create a new Scheduled Task via the command line (schtasks.exe), the following error appears:

“WARNING: The task name “<>” already exists. Do you want to replace it (Y/N>?”

followed by when you hit Y, then this message will appear:

“ERROR: Cannot create a file when that file already exists.”


Navigate to c:\windows\system32\tasks and manually delete the task by name, and do likewise from the Scheduled Tasks GUI. After that you’ll was able to re-add the task (which had the same name)

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.