Registry data refreshed from vendors: Last vendor change detected: 5 Dec 2026Next refresh: 1st of the monthApp v1.4.0 (5 Dec 2026): Cleanup or tattoo: see what stays behind after a GPO is removed. Release notes
Microsoft · Windows

Enable Win32 long paths (LongPathsEnabled)

Lets applications that declare themselves long-path aware use file paths longer than the classic 260-character MAX_PATH limit.

Verified · 2026-12-05 Per machine (HKLM) Windows 11Windows Server 2025Windows Server 2022Windows Server 2019Windows Server 2016

Where it lives

  • HKLM\SYSTEM\CurrentControlSet\Control\FileSystem

Values

NameTypeData and meaningDefault
LongPathsEnabledREG_DWORD0 Classic MAX_PATH (260) limit
1 Long paths allowed for long-path-aware apps
0

In plain English

Two conditions are needed: this value set to 1, and the application's manifest must contain longPathAware. Apps that aren't long-path aware keep the 260-character limit, so this doesn't fix every "path too long" error (File Explorer, for example).

Each process reads the value once and caches it, so restart apps, or reboot, after changing it.

RestartRestart affected applications; a reboot makes sure every process sees it.
Group PolicyComputer Configuration > Administrative Templates > System > Filesystem > Enable Win32 long paths (FileSys.admx)
RiskLow.

How to configure it

Enable on a build server or file server

PowerShell

New-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem' -Name LongPathsEnabled -Value 1 -PropertyType DWord -Force

Official sources

Verified Confirmed automatically on the cited source.

File system and storage