OneDrive creating duplicate files with computer name
If OneDrive is creating multiple copies of your file or folders by adding your Computer Name, you may need to refresh your credentials to solve the problem. See how it’s done: On your Windows 10 PC, click Start. Type credentials in the search box displayed and hit Enter. From the list of options displayed, select Credential Manager.
Under it, switch to the Windows Credentials tab.
Look for OneDrive Cached Credentials entry.
When found, click the entry to display the Remove link. Click the link to remove it. Restart OneDrive and check if the problem is solved! The same problem can also be experienced with OneDrive for Mac. To resolve it, Type keychain in Spotlight Search and select Keychain Access. If Keychain is not visible under Spotlight, you can go to the Utility folder and open Keychain Access from there. Then, Search for OneDrive.
When found, look for OneDrive Cached Credential entry. Delete the OneDrive Cached Credential entry and run OneDrive again. This should fix the problem permanently. That’s all there is to it!