Maximum Path Length Limitation
To enable long file paths in Windows Server, you need to modify a Group Policy or registry setting to allow paths longer than 260 characters (MAX_PATH). This feature is available on Windows Server 2016 and newer (as well as Windows 10/11) and only works with applications that support the \\?\
prefix.
Option 1: Enable via Group Policy
Press
Win + R
, typegpedit.msc
, and press Enter to open the Local Group Policy Editor.Navigate to:
Computer Configuration > Administrative Templates > System > Filesystem
Find and double-click:
Enable Win32 long paths
Set it to Enabled, then click OK.
Restart your system (or reboot the server) to apply the change.
Option 2: Enable via Registry Editor
Press
Win + R
, typeregedit
, and press Enter.Navigate to:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem
Look for a value named:
LongPathsEnabled
If it doesn't exist, right-click on the right panel, select New > DWORD (32-bit) Value, name it
LongPathsEnabled
.
Set the value to:
1
Restart your system to apply the changes.
Notes:
The application must be manifest-aware and use the correct APIs or
\\?\
syntax to support long paths.Some older applications will still not support long paths, even with this enabled.
Make sure your Windows version is updated (this feature is supported from Server 2016, Windows 10 v1607+).
REFERENCES
Last updated
Was this helpful?