Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Add a Custom Folder Under This PC in File Explorer

· 5 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

You can add a custom folder under This PC in File Explorer by editing the Windows Registry to create a new namespace entry. This makes the folder appear alongside the default drives (C:, D:, etc.) and system folders like Desktop and Documents. You will need to be signed in as an administrator and use the Registry Editor carefully—backing up the registry first is strongly recommended.

What You'll Need

  • A Windows PC (the steps work on Windows 10 and Windows 11).
  • Administrator account access.
  • The full path of the folder you want to add (e.g., D:\Projects or C:\Users\YourName\Stuff).
  • A text editor like Notepad (to create a .reg file if you prefer that method).

Step-by-Step

  1. Decide on the folder path – Make sure the folder exists and you know its full path. For example, if you want to add D:\Projects, create that folder first if it doesn’t already exist.
  2. Open Registry Editor – Press Win + R, type regedit, and press Enter. If prompted by User Account Control, click Yes.
  3. Back up the registry – In Registry Editor, click File > Export, choose a location, and save a backup. This is critical—if you make a mistake, you can restore it.
  4. Navigate to the namespace key – In the left pane, go to:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace
    (Note: menu labels can differ slightly by Windows version, but this path is consistent.)
  5. Create a new key – Right-click on NameSpace, select New > Key. A new key will appear with a default name like “New Key #1”.
  6. Name the key with a CLSID – You need a unique identifier (a GUID) for your folder. You can generate one using PowerShell or an online GUID generator. For example, a valid GUID looks like {B4B3A3B2-3C2D-4E5F-8A9B-1C2D3E4F5A6B}. Right-click the new key, select Rename, and paste the GUID including the curly braces.
  7. Set the default value – With the new key selected, double-click the (Default) value in the right pane. Enter the name you want to see under This PC (e.g., “Projects”). Click OK.
  8. Add the folder path – Right-click on the new key, select New > String Value. Name it Folder. Double-click it and enter the full path to your folder (e.g., D:\Projects). Click OK.
  9. Close Registry Editor – Close the Registry Editor window.
  10. Restart File Explorer – Open Task Manager (Ctrl + Shift + Esc), find Windows Explorer under “Processes”, right-click it, and select Restart. Alternatively, sign out and back in.
  11. Check This PC – Open File Explorer and click on This PC in the left sidebar. Your custom folder should appear in the “Folders” section. Click it to verify it opens the correct location.

Common Mistakes

  • Using a duplicate GUID – If you copy a GUID from an existing key, it will conflict. Always generate a new one.
  • Forgetting the curly braces – The GUID must be enclosed in braces, like {...}. Without them, Windows won’t recognize it.
  • Typing the folder path incorrectly – A single typo in the Folder value will cause the folder to not appear or open an error. Double-check the path.
  • Not restarting File Explorer – Changes won’t take effect until Explorer is restarted or you sign out/in.
  • Editing the wrong registry hive – The steps above use HKEY_LOCAL_MACHINE, which applies to all users. If you only want it for your user, you could use HKEY_CURRENT_USER, but the folder may not show in all contexts. Stick with the given path for a system-wide addition.

Tips

  • Create a .reg file for easy re-use – Instead of manually editing the registry each time, you can create a text file with the following content, save it as addfolder.reg, and double-click it to merge:
    Windows Registry Editor Version 5.00
    
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{YOUR-GUID-HERE}]
    @="Projects"
    "Folder"="D:\\Projects"
    Replace the GUID and paths accordingly.
  • Use a descriptive name – The default value is what shows under This PC, so make it clear, e.g., “Work Files” or “Games”.
  • Test with a simple folder first – If you’re unsure, create a folder like C:\TestFolder and add that. Once it works, you can delete the registry key and repeat with the real folder.
  • Back up before every change – Even if you’ve done it before, a backup ensures you can revert if something goes wrong.

Troubleshooting

If the folder doesn’t appear after restarting Explorer:
- Double-check the registry path. You must be under MyComputer\NameSpace—not MyComputer directly.
- Verify the GUID is unique and enclosed in braces.
- Make sure the Folder value exists and contains the correct path.
- Restart your PC instead of just restarting Explorer—sometimes a full reboot is needed.

If the folder appears but shows an error when clicked:
- The path in the Folder value is likely wrong. Edit the registry key and correct the path.
- Ensure the folder actually exists and you have permission to access it.

If you accidentally break something in the registry:
- Use the backup you created earlier: open Registry Editor, click File > Import, select your backup, and restart.

If the folder disappears after a Windows update:
- Windows updates can reset registry entries. Simply re-apply the steps or merge your .reg file again.

Frequently Asked Questions

Can I add a folder that is on a network drive?

Yes, you can use a UNC path like \\Server\Share in the Folder value. However, the folder may not appear if the network location is unavailable at startup, and it might show a delay.

Will this work for OneDrive folders?

Yes, as long as you use the full local path (e.g., C:\Users\YourName\OneDrive\Documents). The folder will appear like any other.

Can I add multiple custom folders?

Yes, repeat the steps for each folder, using a new GUID for each one. You’ll see all of them under This PC.

Does this affect other users on the PC?

Because the steps modify HKEY_LOCAL_MACHINE, the folder will appear for all users. If you want it only for your account, you would need to use HKEY_CURRENT_USER, but the folder might not show in all views.

Is there a way to remove the folder later?

Yes, simply delete the registry key you created (the one with the GUID). Restart Explorer and the folder will disappear.

Is it safe to edit the registry?

It is safe if you follow the steps exactly and back up first. Incorrect changes can cause system issues, so always export a backup before starting.