Where Regedit Stores Windows Shell Folder Paths

Windows uses the Registry to define and locate standard user directories such as Documents, Pictures, Downloads, and Desktop. These special directories, known as shell folders, are managed through specific Registry keys that assign default system paths or custom redirected storage locations for both individual user accounts and global public profiles.

Primary Location for the Current User

The active and authoritative location where Windows stores shell folder paths for the logged-in user is:

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders

This key uses REG_EXPAND_SZ (expandable string) values containing environment variables like %USERPROFILE%. Windows actively reads this key to determine where user directories are mapped.

Common entries inside this key include:

Legacy Current User Location

Windows also maintains a secondary key for backward compatibility:

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders

This key contains static REG_SZ strings with absolute drive paths (e.g., C:\Users\Username\Documents). Modern versions of Windows maintain this key solely for older applications that do not recognize environment variables. Modifying paths in this key alone will usually not redirect the folder in Windows Explorer; changes should always be made in User Shell Folders.

Global and Public Folder Locations

To define default shell folders for all users and shared system paths (such as Public Documents or the Common Desktop), Windows stores paths under the HKEY_LOCAL_MACHINE hive:

These keys map shared directories using variables like %PUBLIC% or %ProgramData%.

How to Modify Shell Folder Paths

  1. Press Win + R, type regedit, and press Enter.
  2. Navigate to HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders.
  3. Double-click the entry you want to modify (e.g., Personal for Documents).
  4. Enter the new absolute path or variable-based path in the Value data field.
  5. Click OK, then restart the explorer.exe process or log out and back into Windows for the changes to take effect.