How do I stop onedrive from being my default directory

%3CLINGO-SUB%20id%3D%22lingo-sub-1689407%22%20slang%3D%22en-US%22%3EHow%20do%20I%20stop%20onedrive%20from%20being%20my%20default%20directory%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1689407%22%20slang%3D%22en-US%22%3E%3CP%3EI%20am%20trying%20to%20setup%20an%20external%20hard%20drive%20as%20my%20default%20directory%20for%20pictures%20but%20my%20computer%20is%20forcing%20me%20to%20use%20onedrive.%20How%20can%20I%20disable%20this%20feature%3F%20I%20am%20using%20windows%2010.%20This%20is%20what%20happens.%20There%20are%20no%20folders%20in%20any%20of%20the%20directories.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22errorfor%20redirecting%20files.png%22%20style%3D%22width%3A%20817px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F220002i592C2AB50D2B45CC%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22errorfor%20redirecting%20files.png%22%20alt%3D%22errorfor%20redirecting%20files.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1689407%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EOneDrive%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1717865%22%20slang%3D%22en-US%22%3ERe%3A%20How%20do%20I%20stop%20onedrive%20from%20being%20my%20default%20directory%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1717865%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F800657%22%20target%3D%22_blank%22%3E%40BlueRocco%3C%2FA%3E%26nbsp%3B%20Wow%2C%20NOBODY%20knows%3F%20Is%20onedrive%20some%20sort%20of%20virus%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1718336%22%20slang%3D%22en-US%22%3ERe%3A%20How%20do%20I%20stop%20onedrive%20from%20being%20my%20default%20directory%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1718336%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F800657%22%20target%3D%22_blank%22%3E%40BlueRocco%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENo%20one%20answers%20because%20Microsoft%20dont%20want%20you%20to%20remove%20it.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20onedrive%20path%20in%20your%20file%20explorer%20is%20local%20if%20you%20uninstall%20onedrive.%3C%2FP%3E%3CP%3E%3CU%3EOnce%20removed%2C%20your%20paths%20works%20just%20like%20a%20normal%20library.%3C%2FU%3E%3C%2FP%3E%3CP%3EHowever%2C%3C%2FP%3E%3CP%3Eif%20you%20are%20like%20me%2C%20and%20dont%20want%20that%20unnecessary%20onedrive%20in%20your%20library%20path%2C%20you%20need%20to%20edit%20the%20registry%20%3CSTRONG%3EAND%3C%2FSTRONG%3E%20change%20the%20location%20on%20each%20of%20the%20default%20library%20paths.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYou%20might%20noticed%20that%20you%20have%20double%20%22documents%22%20path%20and%20some%20library%20path%20might%20be%20missing.%26nbsp%3B%20That%20is%20a%20normal%20flaw%20with%20Onedrive%20%2Cwhich%20Microsoft%20%3CU%3Estill%3C%2FU%3E%20have%20not%20fixed.%3C%2FP%3E%3CP%3E(I%20dont%20think%20they%20see%20that%20as%20a%20problem).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThere%20is%20a%20decent%20macro%20you%20can%20run%20from%20%22%3CEM%3EHowtogeek%3C%2FEM%3E%22%20site%2C%20which%20is%20safe%20and%20fix%20%3CSTRONG%3ESOME%3C%2FSTRONG%3E%20of%20the%20paths%2C%20not%20all.%3C%2FP%3E%3CP%3ELink%3A%20%3CSTRONG%3E(Please%20note%2C%20Howtogeek%20is%20not%20microsoft.%20They%20are%20however%20a%20recommended%20source%20for%20win%2010%20solutions%20by%20microsoft)%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fwww.howtogeek.com%2F225973%2Fhow-to-disable-onedrive-and-remove-it-from-file-explorer-on-windows-10%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.howtogeek.com%2F225973%2Fhow-to-disable-onedrive-and-remove-it-from-file-explorer-on-windows-10%2F%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERun%20that%2C%3C%2FP%3E%3CP%3Ethen%20open%20properties%20on%20each%20library%20like%20%22Pictures%22%2C%20and%20choose%20%22%3CU%3EChange%20to%20default%20path%3C%2FU%3E%22.%3C%2FP%3E%3CP%3EMost%20of%20the%20time%20this%20is%20enough%20and%20you%20reboot.%3C%2FP%3E%3CP%3EAfter%20reboot%2C%20run%20a%20%3CSTRONG%3ESFC%20%2FSCANNOW%3C%2FSTRONG%3E%20from%20powershell%20with%20administrator%20rights.%3C%2FP%3E%3CP%3EVoila%2C%20path%20is%20%22user%2FPictures%22%2C%20once%20again.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThis%20does%20not%20always%20work.%3C%2FP%3E%3CP%3E%26nbsp%3BYou%20may%20get%20the%20error%20%22%3CEM%3Eno%20permission%20to%20change%20path%3C%2FEM%3E%22%2C%20or%20%22%3CEM%3ECant%20find%20path%20because%20234904234809239482%3C%2FEM%3E......%20(Numbers%20and%20letters%20that%20makes%20zero%20sense).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWindows%20has%20several%20tools%20to%20fix%20onedrive%20paths%20that%20gets%20corrupted.%3C%2FP%3E%3CP%3E%3CU%3E%3CSTRONG%3EBut%20those%20ONLY%20fix%20so%20you%20get%20onedrive%20in%20your%20library%20path%20again.%20There%20is%20no%20tool%20to%20remove%20it.%3C%2FSTRONG%3E%3C%2FU%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPlease%20note%3A%3C%2FP%3E%3CP%3E%3CU%3EUninstall%20onedrive%20makes%20all%20your%20library%20paths%20local.%20The%20onedrive%20map%20in%20the%20map%20is%20annoying%2C%20but%20is%20not%20connected%20to%20onedrive%20anymore.%3C%2FU%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWHY%20microsoft%20makes%20this%20so%20difficult%2C%20you%20have%20to%20ask%20them.%3C%2FP%3E%3CP%3EThe%20best%20thing%20is%20to%20remove%20onedrive%20after%20a%20FRESH%20INSTALL%20of%20windows%2C%20BEFORE%20you%20sync%20and%20restore%20your%20backups.%20THEN%2C%20the%20onedrive%20does%20not%20appear%20in%20your%20library%20paths.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOnedrive%20is%20a%20very%20good%20feature%20to%20have%20IF%3C%2FP%3E%3CP%3E1.%20You%20have%20Office%20365%3C%2FP%3E%3CP%3E2.%20In%20onedrive%20settings%2C%20you%20ONLY%20use%20the%20feature%20%22Fetch%20my%20files%20when%20I%20need%20them%22%3C%2FP%3E%3CP%3E3.%20You%20use%20a%20LAN%20CABLE%2C%20not%20wifi.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWith%20an%20office%20365%20subscription%20(now%20called%20Microsoft%20365)%2C%20you%20get%201TB%20of%20onedrive%20storage.%3C%2FP%3E%3CP%3EWin%2010%20is%20extremy%20good%20at%20putting%20unused%20files%20in%20onedrive%20with%20this%20feature.%20The%20files%20looks%20like%20they%20are%20on%20your%20C%3Adrive%2C%20but%20doesn't%20take%20up%20any%20space.%20Once%20the%20file%20is%20needed%2C%20it%20instantly%20downloads%20and%20gets%20used.%26nbsp%3B%3C%2FP%3E%3CP%3ETHIS%20IS%20WHY%20YOU%20SHOULD%20NOT%20USE%20THIS%20FEATURE%20IN%20WI-FI.%3C%2FP%3E%3CP%3EWith%20a%20simple%20lan%20cable%2C%20you%20will%20not%20notice%20any%20difference.%26nbsp%3B%3C%2FP%3E%3CP%3EWith%20Wi-Fi%2C%20games%2C%20steam%20and%20windows%20features%20will%20stall%2C%20lag%2C%20or%20crash%2C%20after%20a%20while.%3C%2FP%3E%3CP%3EThe%20reason%20is%20not%20that%20Wi-Fi%20does%20not%20have%20the%20transfer%20speed%20anymore.%20The%20reason%20is%20heartbeat%2Fping%2C%20which%20compared%20to%20a%20lan%20cable%20is%20the%20difference%20from%20walking%20speed%20and%20Elon%20Musks%20rocket%20speed.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3EHope%20this%20helps!%3C%2FSTRONG%3E%3CBR%20%2F%3E(and%20microsoft%20leaves%20my%20post%20alone.%20They%20do%20not%20like%20people%20posting%20how%20to%20remove%20their%20onedrive%20from%20the%20registry%2C%20since%20that%20makes%20it%20difficult%20to%20replace%20onedrive%20with%20better%20solutions%20like%20Google%20drive%2C%20ICloud%20etc.)%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

I am trying to setup an external hard drive as my default directory for pictures but my computer is forcing me to use onedrive. How can I disable this feature? I am using windows 10. This is what happens. There are no folders in any of the directories.

errorfor redirecting files.png

 

3 Replies

@BlueRocco  Wow, NOBODY knows? Is onedrive some sort of virus?

@BlueRocco 

 

No one answers because Microsoft dont want you to remove it.

 

The onedrive path in your file explorer is local if you uninstall onedrive.

Once removed, your paths works just like a normal library.

However,

if you are like me, and dont want that unnecessary onedrive in your library path, you need to edit the registry AND change the location on each of the default library paths.

 

You might noticed that you have double "documents" path and some library path might be missing.  That is a normal flaw with Onedrive ,which Microsoft still have not fixed.

(I dont think they see that as a problem).

 

There is a decent macro you can run from "Howtogeek" site, which is safe and fix SOME of the paths, not all.

Link: (Please note, Howtogeek is not microsoft. They are however a recommended source for win 10 solutions by microsoft)

https://www.howtogeek.com/225973/how-to-disable-onedrive-and-remove-it-from-file-explorer-on-windows...

 

Run that,

then open properties on each library like "Pictures", and choose "Change to default path".

Most of the time this is enough and you reboot.

After reboot, run a SFC /SCANNOW from powershell with administrator rights.

Voila, path is "user/Pictures", once again.

 

This does not always work.

 You may get the error "no permission to change path", or "Cant find path because 234904234809239482...... (Numbers and letters that makes zero sense).

 

Windows has several tools to fix onedrive paths that gets corrupted.

But those ONLY fix so you get onedrive in your library path again. There is no tool to remove it.

 

Please note:

Uninstall onedrive makes all your library paths local. The onedrive map in the map is annoying, but is not connected to onedrive anymore.

 

WHY microsoft makes this so difficult, you have to ask them.

The best thing is to remove onedrive after a FRESH INSTALL of windows, BEFORE you sync and restore your backups. THEN, the onedrive does not appear in your library paths.

 

Onedrive is a very good feature to have IF

1. You have Office 365

2. In onedrive settings, you ONLY use the feature "Fetch my files when I need them"

3. You use a LAN CABLE, not wifi.

 

With an office 365 subscription (now called Microsoft 365), you get 1TB of onedrive storage.

Win 10 is extremy good at putting unused files in onedrive with this feature. The files looks like they are on your C:drive, but doesn't take up any space. Once the file is needed, it instantly downloads and gets used. 

THIS IS WHY YOU SHOULD NOT USE THIS FEATURE IN WI-FI.

With a simple lan cable, you will not notice any difference. 

With Wi-Fi, games, steam and windows features will stall, lag, or crash, after a while.

The reason is not that Wi-Fi does not have the transfer speed anymore. The reason is heartbeat/ping, which compared to a lan cable is the difference from walking speed and Elon Musks rocket speed.

 

Hope this helps!
(and microsoft leaves my post alone. They do not like people posting how to remove their onedrive from the registry, since that makes it difficult to replace onedrive with better solutions like Google drive, ICloud etc.)

@The_Swedish_Goth I tried everything you said except the total reinstall. I just can't face that. The virus still lives on my computer. Why does microsoft distribute a virus WITH their software, this is ridiculous! Still no answer. They keep sending me notices that they are ending my "case" because I don't respond. I respond to every one of them! It's like talking at a wall!