This tool is for people who want OneDrive removed from a Windows user profile, especially when OneDrive has taken over folders such as Desktop, Documents, Pictures, Music, Videos, or Downloads.
Saved From OneDrive folder.Right-click this file and choose Run as administrator:
Onedrive Fixes.cmd
The script writes .reg backups and a .log file beside itself in this folder.
Reboot the computer. Then check that your folders are back under your normal user profile, for example:
C:\Users\YourName\Desktop C:\Users\YourName\Documents C:\Users\YourName\Music
If OneDrive contained extra folders that were not standard Windows folders, they should be in a folder named like this:
C:\Users\YourName\Saved From OneDrive 20260623-120000