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:
- Personal: The path to your Documents folder.
- My Pictures: The path to your Pictures folder.
- My Music: The path to your Music folder.
- My Video: The path to your Videos folder.
- Desktop: The path to your Desktop directory.
- {374DE290-123F-4565-9164-39C4925E467B} or {7D83EE9B-2244-4E70-B1F5-54637D46D19E}: The path to your Downloads folder.
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:
- Authoritative Key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders - Legacy Compatibility Key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders
These keys map shared directories using variables like
%PUBLIC% or %ProgramData%.
How to Modify Shell Folder Paths
- Press
Win + R, typeregedit, and press Enter. - Navigate to
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders. - Double-click the entry you want to modify (e.g.,
Personalfor Documents). - Enter the new absolute path or variable-based path in the Value data field.
- Click OK, then restart the
explorer.exeprocess or log out and back into Windows for the changes to take effect.