Remove the 260 character limit for NTSF Paths in Windows Server 2016 and Windows 10

With the Anniversary-Update on Windows 10 (Version 1607) you have the option to remove the limit for the 260 character standard.

Within the registry HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem you will find a D-WORD (32-bit) named LongPathsEnabled.

It is deposited with the value 0. Change it to 1 to activate the option.

The same change can be implemented with a GPO.

 

The practival utility

Disadvantageously, this doesnt effect the system the way it is intended.

Some applications can gain profit from this setting (PowerShell). For other Windows-Standardapplications, like the “explorer.exe” or “cmd.exe”, this setting does not work. Under this terms, there is no real way to disable this limitation for the use within migRaven.

 

Risks

The use of this settings is always at your own risk.
Windows used a #define-constant labelled as MAX_PATH to save path-names, while changing the size of Character-Arrays (Strings).

The remove of this limit can lead to Buffer-Overflow,
generally leading the application to crash.

Translate »