How to enable / disable the Enable Win32 long paths policy in Windows 10

How to enable / disable the Enable Win32 long paths policy in Windows 10

By default, the maximum path length limit in Windows is 260 characters. The local path is structured in the following order: drive letter, colon, backslash, component names separated by a backslash, and a ending null character.

The Win32 long paths policy allows to use long paths

Starting with Windows 10 build 14352, you can enable NTFS long paths to allow win32 apps to be enumerated and Windows Store apps to access paths beyond the 260-character limit. usually per node. Enabling this setting will make long paths accessible during the process.

Starting with Windows build 1607, this policy was changed and is currently called Win32 long paths.

This guide will show you how to enable or disable the Win32 long paths policy to have a path longer than 260 characters for all users in Windows 10.

Note:

You must login as admin to be able to enable or disable the Win32 long paths policy.

Enabling NTFS (Win32) long paths will allow the declared win32 apps and the Windows Store app to access paths beyond the normal 260 character limit per node on the file systems that support it. Enabling this setting will make long paths accessible during the process.

This actually means that an application must have the following line in its manifest file:

<longPathAware>true</longPathAware>

Manifest is a small file containing additional information about the EXE process such as compatibility information and DPI awareness, etc.

Besides the app developer adding the manifest file, this Group Policy setting must be enabled for NTFS long paths.

Enable or disable Win32 long paths by Group Policy

Local Group Policy Editor is only available in Windows 10 Pro, Enterprise, and Education editions.

1. Open Local Group Policy Editor.

2. Navigate to the location below in the left section of Local Group Policy Editor:

Computer ConfigurationAdministrative TemplatesSystemFilesystem
Navigate to the location shown in the Local Group Policy Editor

3. To the right of the Filesystem under Local Group Policy Editor , double click on the Enable Win32 long paths policy to edit it.

4. Do step 5 (to enable) or step 6 (to disable) below, depending on what you want to do.

5. To activate the Win32 Long Paths policy, select Enabled , click OK and go to step 7 below.

6. To disable the Win32 Long Path policy, choose Not Configured or Disabled , click OK and go to step 7 below. Not Configured is the default setting.

Not Configured is the default setting

7. When done, you can close the Local Group Policy Editor if you want.

See more:

  • Instructions to enable / disable the Windows 10 Battery Saver feature