How do I prevent Windows from automatically duplicating files?

Laura Jennings 0 Reputation points
2026-10-29T07:48:04.57+00:00

Windows is automatically duplicating files. I do not know why. Refreshed the credentials. How do I prevent this from recurring??

Windows for home | Windows 11 | Files, folders, and storage

3 answers

Sort by: Oldest
  1. AI answer

    2026-10-29T07:48:20.23+00:00

    If the duplicates are files with the computer name added to the filename, the documented cause is expired or stale OneDrive credentials. Since credentials were already refreshed, the next supported step is to clear the local OneDrive sign-in cache, then reinstall OneDrive if it still recurs.

    On Windows:

    1. Press Windows key + R.
    2. Enter %localappdata%\Microsoft\OneDrive\settings and select OK.
    3. Delete PreSignInSettingsConfig.json.
    4. Start OneDrive again and check whether new duplicates stop appearing.

    If the issue continues:

    1. Uninstall OneDrive.
    2. Reinstall it using Download for Windows.

    Microsoft also notes that uninstalling OneDrive does not delete files or data from OneDrive. Files remain available through OneDrive.com.

    If the duplicates are not related to OneDrive filenames that include the device name, the provided material does not document a general Windows feature that automatically duplicates files.


    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

  2. Vikki-T 14,115 Reputation points Microsoft External Staff Moderator
    2026-10-29T13:37:07.27+00:00

    Hi Laura Jennings,

    I understand how confusing and frustrating it can be when files are duplicated without any clear reason.

    The next step is to confirm whether the duplicates are actually being created by OneDrive or by another application.

    Please check whether the affected files are stored inside a OneDrive folder and whether the duplicate filenames include the name of your computer. If the computer name is added, the issue is usually related to OneDrive synchronization. Since you have already refreshed the credentials, check whether the same folder is being synced or backed up from another device, and avoid editing the same file on multiple devices at the same time.

    You can also try resetting the OneDrive sync connection by pressing Windows key + R, entering:

    %localappdata%\Microsoft\OneDrive\OneDrive.exe /reset

    Then reopen OneDrive from the Start menu. Resetting OneDrive should not delete the files stored in the cloud.

    If the duplicates are outside OneDrive or do not include the device name, please share the folder location and an example of how the duplicate filenames appear. That information will help identify whether OneDrive, another backup service, or a specific application is creating them. Thank you so much for your understanding.   


    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Was this answer helpful?


  3. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.