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.
Where it lives
HKLM\SYSTEM\CurrentControlSet\Control\FileSystem
Values
| Name | Type | Data and meaning | Default |
|---|---|---|---|
LongPathsEnabled | REG_DWORD | 0 Classic MAX_PATH (260) limit1 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.
| Restart | Restart affected applications; a reboot makes sure every process sees it. |
|---|---|
| Group Policy | Computer Configuration > Administrative Templates > System > Filesystem > Enable Win32 long paths (FileSys.admx) |
| Risk | Low. |
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 -ForceOfficial sources
- Maximum Path Length Limitation · checked 2026-12-05
- Policy CSP - ADMX_FileSys (LongPathsEnabled ADMX mapping) · checked 2026-12-05
Verified Confirmed automatically on the cited source.