Auto Expand Folders in Windows Explorer via Registry

Windows File Explorer includes a feature that automatically expands the navigation pane tree to highlight and display the currently active folder. While this setting can be toggled through the standard File Explorer options interface, it is directly controlled in the Windows Registry by a specific DWORD entry within the current user’s configuration profile. Adjusting this registry value enables administrators and power users to automate, script, or enforce navigation pane expansion behavior across Windows systems.

The Registry Value Details

To configure the “Expand to open folder” feature, navigate to the following registry path in Regedit:

Value Data Options

How to Modify the Entry Using Regedit

  1. Press Windows Key + R, type regedit, and press Enter to open the Registry Editor.

  2. Navigate to:

    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced
  3. Locate the NavPaneExpandToCurrentFolder value in the right pane. If it does not exist, right-click an empty area, select New > DWORD (32-bit) Value, and name it NavPaneExpandToCurrentFolder.

  4. Double-click the entry and set the Value data to either 1 (to enable auto-expansion) or 0 (to disable auto-expansion).

  5. Click OK to save the changes.

Applying the Changes

For the registry modification to take effect immediately, restart the Windows Explorer process:

  1. Press Ctrl + Shift + Esc to open Task Manager.
  2. Locate Windows Explorer under the Processes tab.
  3. Right-click it and select Restart.

Alternatively, logging out and logging back into the Windows account will apply the new configuration.