Add Custom Folders to This PC in Windows 11
In this article
You can add your own folders (like Documents, Downloads, or any custom folder) to the "This PC" view in Windows 11 File Explorer. This puts your most-used folders right on the main navigation pane, so you don't have to dig through drives. The process uses a registry edit, which is safe if you follow the steps exactly. You'll need to be signed in as an administrator, and you should back up the registry before starting (File > Export in Registry Editor).
What You'll Need
- Windows 11 PC with administrator access
- The exact folder path you want to add (e.g., D:\Projects or C:\Users\YourName\Videos)
- Registry Editor (built into Windows, no download needed)
Step-by-Step
- Open Registry Editor. Press Win + R, type
regedit, and press Enter. Click "Yes" if prompted by User Account Control. - Back up the registry (recommended). In Registry Editor, go to File > Export, choose a location, name it something like "backup.reg", and click Save. This lets you restore if something goes wrong.
- Navigate to the right key. In the left pane, go to:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace - Create a new key. Right-click on NameSpace, select New > Key, and name it with a unique GUID (Globally Unique Identifier). You can generate one at guidgen.com, or just copy this one:
{12345678-1234-1234-1234-123456789012}. Make sure it's unique—don't reuse the same GUID for two folders. - Set the display name. With the new key selected, double-click the (Default) value in the right pane. In "Value data," type the name you want to see under This PC (e.g., "Projects"). Click OK.
- Add the folder path. Right-click the new key, select New > String Value, and name it
TargetFolderPath. Double-click it, and in "Value data," enter the full path to the folder you want to add (e.g.,D:\Projects). Click OK. - Refresh File Explorer. Press Ctrl + Shift + Esc to open Task Manager, find "Windows Explorer" in the Processes list, right-click it, and choose Restart. Your folder should now appear under This PC.
- Verify and adjust. Open File Explorer, click on "This PC" in the left sidebar. Your folder should be listed under the "Folders" section. If it's not, double-check the registry path and the folder path.
Common Mistakes
- Wrong registry location: The key must be under
MyComputer\NameSpace—not underHKEY_CURRENT_USER. Using the wrong hive will not show the folder. - Duplicate GUIDs: If you add two folders with the same GUID, only one will appear. Always generate a new GUID for each folder.
- Incorrect folder path: The path must be the full absolute path (e.g.,
C:\Users\YourName\Documents). Relative paths or paths with trailing backslashes may not work. - Forgetting to restart Explorer: The change won't show until File Explorer restarts. Use the Task Manager method or simply sign out and back in.
Tips
- Use for network drives or external drives: You can add any folder that Windows can access, including network shares (e.g.,
\\Server\Share) or external drive paths. - Keep the registry clean: If you want to remove a folder later, just delete the registry key you created. No other cleanup needed.
- Name it clearly: The display name you set in the Default value is what shows in This PC. Use something short and recognizable.
- Test with a simple folder first: Try adding a folder like
C:\Users\Public\Documentsbefore using a custom path, to confirm the method works on your system.
Troubleshooting
Folder doesn't appear after restart: Double-check the registry path. Make sure you're under HKEY_LOCAL_MACHINE\...\NameSpace and not HKEY_CURRENT_USER. Also confirm the Default value and TargetFolderPath are spelled correctly (case doesn't matter, but the name must be exact).
Folder appears but is empty or inaccessible: This usually means the folder path is wrong or the folder doesn't exist. Open File Explorer and navigate to the path manually to confirm it's valid. If it's a network drive, make sure it's connected before starting Windows Explorer.
Registry edit doesn't take effect: Try signing out and signing back in instead of just restarting Explorer. If that fails, restart your PC. If it still doesn't work, the registry key may be corrupted—delete the key you created and recreate it.
You see a red X or error icon: This happens when the folder is not available (e.g., external drive unplugged). Reconnect the drive or check the path. The icon will disappear once the folder is accessible.
If nothing works and you need to undo: Use the backup .reg file you created. Double-click it and confirm to restore the registry to its previous state. Then restart Explorer.
Frequently Asked Questions
Can I add a folder without editing the registry?
No, Windows 11 doesn't provide a built-in GUI option to add custom folders to This PC. The registry method is the only official way to do it.
Will this work for OneDrive folders?
Yes, as long as the folder path is valid (e.g., C:\Users\YourName\OneDrive\Documents). It will work just like any other folder.
Can I remove a folder I added?
Yes, open Registry Editor, go to the same NameSpace key, find the GUID you created, right-click it and choose Delete. Then restart Explorer. The folder will be removed from This PC.
Does this affect the actual folder location?
No, this only adds a shortcut in This PC. The original folder stays where it is, and you can still move or rename it normally.
Is it safe to edit the registry this way?
Yes, as long as you only add a new key under NameSpace and don't modify existing keys. The backup step protects you from mistakes.
Can I add a folder that's on another drive (like D:)?
Absolutely. Just use the full path to that folder, e.g., D:\Games. It will appear in This PC just like a local folder.