Skip to content

Instantly share code, notes, and snippets.

@GLMeece
Last active March 18, 2025 21:42
Show Gist options
  • Save GLMeece/f0e950d538ceda5d4c4d87d8f78ef8d7 to your computer and use it in GitHub Desktop.
Save GLMeece/f0e950d538ceda5d4c4d87d8f78ef8d7 to your computer and use it in GitHub Desktop.
Remove Personal OneDrive Listing from Windows 10/11

If you have a company-managed OneDrive account like I do, you probably will never need or want to access a personal OneDrive account. It clutters up the Explorer menu and it's likely that you would prefer not to see it. Here's where I got the answer.

How to Stop Personal OneDrive from Being Pinned in Explorer

  1. Open RegEdit (RegistryEditor): type regedit in the start menu and it should come up (select it)

  2. Find the personal OneDrive here: hkey_current_user\software\microsoft\windows\currentversion\explorer\desktop\namespace

  3. At the top, where it says Computer paste the following to the right of it (i.e., don't delete Computer):

    \HKEY_CLASSES_ROOT\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}

    • or, the key may be: {04271989-C4D2-09C3-A576-A95653A943D8}
  4. If you pasted it in correctly and hit enter, is should take you to an entry that has several keys in it. Look for the one that says System.IsPinnedToNameSpaceTree; double-click it.

  5. Change the value from a 1 to a 0 and click OK

It's possible you may have to either log out/log back in or even restart for this change to show up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment