Windows 10: Remove OneDrive Folders from Libraries?

Discus and support Remove OneDrive Folders from Libraries? in Windows 10 Customization to solve the problem; That has absolutely nothing to do with my issue... Discussion in 'Windows 10 Customization' started by drfsupercenter, Aug 14, 2015.

  1. Remove OneDrive Folders from Libraries?


    That has absolutely nothing to do with my issue...
     
    drfsupercenter, Aug 25, 2015
    #46
  2. Gary Win User

    If you would take the time to open that app you will see that it has the ability to completely remove OneDrive and other apps. Something that you came here to get help for. Use it or do not, I can guarantee you that it will do what you want.


    Remove OneDrive Folders from Libraries? [​IMG]
     
  3. Except I don't want to delete OneDrive... read my other posts.

    I already know how to do that, and it's possible without using a third-party app. I JUST want it to stop adding itself to my libraries.
     
    drfsupercenter, Aug 25, 2015
    #48
  4. Gary Win User

    Remove OneDrive Folders from Libraries?

    Source
     
  5. That's still not the issue -_-

    Hiding the icon does not prevent it from adding itself to your libraries.

    I have another idea in mind, which I will test shortly.
     
    drfsupercenter, Aug 25, 2015
    #50
  6. OK, I've come up with a really awkward temporary solution. Hopefully somebody who's knowledgable about Libraries can help refine this a bit.

    Basically, a recap for those just seeing this thread, the ONLY issue I have with OneDrive is that it will add itself to my Libraries (Documents, Music and Photos, for some reason Videos isn't modified even though I have a Videos folder in OneDrive too) every time the app is run - usually this is only at boot-time, but exiting the app and starting it again will do the same thing.

    If I remove the OneDrive location from a library, it stays gone until the next time the app starts, when it adds it back.

    So what I did was go to where the libraries are stored, reset the four main libraries (documents, music, pictures, videos) to default (there's a button to do that) which removes the OneDrive folder location and changes the default back to what it should be - since there's now only one folder, clicking the library in Explorer doesn't show separate categories, just the contents of that one folder.
    After that, I removed ALL permissions from the .library-ms file. This is only possible by navigating directly to the Libraries folder, clicking Properties (it will have a separate Security tab this way, if you just right-click the library in the Explorer side pane it will not), clicking Advanced under security. Disabled inheritance and then removed everything.

    It gave a warning saying if I continue, nobody will be able to access the file and only the owner (which is me) can change permissions. Fine.

    The result: My libraries are still viewable (even though there's no 'read' permission, apparently this doesn't matter), but they cannot be modified by anybody including SYSTEM since I removed the permissions. If I right-click the library in the Explorer pane, it gives an error:


    Remove OneDrive Folders from Libraries? [​IMG]


    But if I just click the library, it shows the contents as it should. The good news: since I removed all the permissions, the OneDrive app cannot modify them either! Success... for now! I can close and reopen the OneDrive app as many times as I want and it doesn't get added to my libraries anymore.

    But like I said... this is a relatively stupid workaround for this problem - it would be nice to still be able to modify the libraries myself. I wonder if there's a way to deny the OneDrive app permission while letting myself have permission? I'd need somebody who deals more with Windows permission to assist here.

    And if it helps anyone, the folder where the .library-ms files are kept is:
    %appdata%\Microsoft\Windows\Libraries

    EDIT:

    Removing all permissions meant I couldn't open any of my files. I was able to see the thumbnails, but trying to open them gave me a permissions error. I've found a more permanent solution:


    Remove OneDrive Folders from Libraries? [​IMG]


    I greyed out my username as this is my computer at work *Zip

    But anyway, basically you need that read/execute permission for it to work properly. The good news: I can still write, modify, whatever the contents of the Pictures folder, as after all, that's a different folder! It's JUST the library-ms file I changed permissions to. What's interesting: if I try to modify the library and add a folder, I can hit apply and OK, it doesn't stop me or give any errors... but as expected it doesn't work, the folder does not get added *Tongue

    I'm thinking this is as close to a proper solution as we'll get unless Microsoft makes a proper way to disable library-adding of OneDrive.
     
    drfsupercenter, Aug 25, 2015
    #51
  7. Gary Win User
    Five pages of users trying to help you , users have given you several ways that it would work. The best being Group Policy. I know that works as I have used it./
     
  8. Remove OneDrive Folders from Libraries?

    5 pages of people not understanding my question is more like it.

    For the empteenth time, I am not trying to remove, disable, or otherwise turn off OneDrive!!
    All of these suggestions were how to uninstall, remove, disable OneDrive. Seriously, people need to re-read my question!

    I managed to solve it myself in my most recent post, but I'd appreciate a more "proper" solution.
     
    drfsupercenter, Aug 25, 2015
    #53
  9. Gary Win User
    Remove OneDrive Folders from Libraries? - Page 3 - Windows 10 Forums

    I used the above fix and it worked on my release of Windows 10 build 10240. I do not have any library's and they are of no use in Windows 10. Maybe if you filled in your System Specs it would help. There is no need to reply as I won't see it.
     
  10. DTG1 Win User
    Since you went this way, why not just remove those extra permissions from OneDrive itself, play with it more. *Smile
     
  11. Well, is there a way to set permissions of a program so it can't write to your hard drive? The OneDrive program itself is just a single EXE in local appdata, obviously my user would need execute permissions but removing all others, I think it would still do the library adding.

    Thanks for actually trying to help though DTG1!
     
    drfsupercenter, Aug 25, 2015
    #56
  12. DTG1 Win User
    Permissions work both ways, you need it to read, so assume that it needs some to write, however pointing a program where it can write can be a bit harder. I dont know enough about dll's to say much, but Onedrive has to save its settings somewhere, in "some-kind" of file, typically *.ini's, normally not within the .exe itself. Knowing that M$ doesnt want us to change how OneDrive works, the settings file maybe an encrypted. hidden system file, idk. Personally, I dont trust M$ or OneDrive, if I need online storage ill go with something less intrusive like Dropbox or even Mega, something I know I can uninstall when something better comes along. Plus I know its easier to safely install Dropbox/Mega on any device I want, and safely uninstall them.
     
  13. Remove OneDrive Folders from Libraries?

    There are some .ini files, I mentioned it in one of my earlier posts. I didn't see anything in there pertaining to libraries, though, but there might be a hidden command... hence why I brought it up in case anyone did some tinkering.
     
    drfsupercenter, Aug 26, 2015
    #58
  14. Soleh Win User
    I'm not sure if this thread is still alive, but I have a solution, which works fine for me. If you don't care about the OneDrive default folders like camera, music etc. just delete these.

    Hope this input helps some people.

    Best regards,
    Patrick
     
    Soleh, Oct 12, 2015
    #59
  15. OldMike65 Win User
    Not sure why everyone is worried about Onedrive folders. MS is removing it soon. Everyone should have received their email from MS.
    Here is a short version.
    We’re emailing you because you’re a member of one or more groups in OneDrive. Groups will no longer be available in OneDrive after October* 16, 2015, and all group files and info will be deleted.

    So why worry about deleting folders in onedrive?? unless you actually use the piece of crap. *Smile
     
    OldMike65, Oct 12, 2015
    #60
Thema:

Remove OneDrive Folders from Libraries?

Loading...
  1. Remove OneDrive Folders from Libraries? - Similar Threads - Remove OneDrive Folders

  2. that is "remove location from library"

    in Windows 10 Software and Apps
    that is "remove location from library": that is "remove location from library" https://answers.microsoft.com/en-us/windows/forum/all/that-is-remove-location-from-library/aa84acea-269d-45c1-b0c1-5288ebcc96d1
  3. Libraries are placed in onedrive folder instead of local folder

    in Windows 10 Gaming
    Libraries are placed in onedrive folder instead of local folder: Just bought a new Dell laptop with Windows 11 with Windows 11 home, version 21H2. The downloads library is local as it should be C:\users\UserHHH\Downloads but the pictures and documents libraries are placed on c:\users\UserHHH\OneDrive\Documents. This is not working well for...
  4. Libraries are placed in onedrive folder instead of local folder

    in Windows 10 Software and Apps
    Libraries are placed in onedrive folder instead of local folder: Just bought a new Dell laptop with Windows 11 with Windows 11 home, version 21H2. The downloads library is local as it should be C:\users\UserHHH\Downloads but the pictures and documents libraries are placed on c:\users\UserHHH\OneDrive\Documents. This is not working well for...
  5. Removal of OneDrive folder from PC

    in Windows 10 Network and Sharing
    Removal of OneDrive folder from PC: Since I no longer needed OneDrive on one of my Windows PCs I "uninstalled" OneDrive. I would now like to delete the OneDrive user folder from the C: drive on that PC - it's contents appear to be corrupted so it is impossible to just delete the folder. Is there any way to...
  6. Remove OneDrive Folder

    in Windows 10 Support
    Remove OneDrive Folder: Hi can I ask a little advice please I have just reformatted my computer and installed the latest version of windows as a clean install it is Version 20H2 build 19042.746 All was ok but I then noticed when I looked at the folder Users then at my name there was a folder called...
  7. Remove folders from OneDrive

    in Windows 10 Support
    Remove folders from OneDrive: Windows 10 - Latest version. I am aware that I can remove folders from OneDrive by removing them from the on-line view. However I read in various places that deleting a folder from OneDrive deletes it from my computer. This seems such an extraordinary thing to do I think I...
  8. Move Library Folders to OneDrive

    in Windows 10 Network and Sharing
    Move Library Folders to OneDrive: I seem to have a basic misunderstanding of the process to move folders to OneDrive. I've followed all the directions that I've found and can't seem to get the locations moved. When I attempt to select a new location it simply keeps coming back to the "New Location"...
  9. Removing folder from library without deleting it

    in Windows 10 Performance & Maintenance
    Removing folder from library without deleting it: One of my folders appears in 2 libraries. If I delete the folder from the wrong library, it gets actually deleted from both libraries AND ALSO FROM MY "DOCUMENTS" and sent to the bin. How can I remove it from that wrong library but not from my Documents nor from my other...
  10. Remove Included Folder from Library in Windows 10

    in Windows 10 Tutorials
    Remove Included Folder from Library in Windows 10: How to: Remove Included Folder from Library in Windows 10 How to Remove Included Folder from Library in Windows 10 Libraries gather folders that are stored in different locations so you can browse them in one place. You can add or remove folders and drives to be...