Skip to content
WindowsAdvanced

Enable Win32 Long Paths in Windows 10/11 and Windows Server – What It Is, Why It Exists, Benefits, Configuration, Registry, Group Policy, PowerShell, Compatibility and Troubleshooting

What Is “Enable Win32 Long Paths” in Windows? Enable Win32 long paths is a Windows policy that allows compatible applications to work with file and folder pa...

BI
Bison Technical Team Enterprise IT specialists
Updated 28 Aug 2026 17 min read 0 total views

What Is “Enable Win32 Long Paths” in Windows?

Enable Win32 long paths is a Windows policy that allows compatible applications to work with file and folder paths that exceed the traditional 260-character MAX_PATH limit.

This setting is particularly useful on modern Windows systems where deeply nested folders, long project names, software development repositories, backups, document-management systems, and extracted archives can easily produce paths longer than 260 characters.

Advertisement

Microsoft introduced the modern long-path opt-in mechanism beginning with Windows 10 version 1607 and corresponding modern Windows Server generations. However, there is an important point that is frequently misunderstood:

Enabling the Windows setting does not automatically make every Windows application capable of handling unlimited-length paths.

For many Win32 applications, both Windows and the application must support the newer long-path behavior.

Microsoft documents the feature here: Microsoft – Maximum Path Length Limitation.


1. First Understand What a Windows Path Is

A file's path is its complete location within the file system.

For example:

C:\Users\John\Documents\Accounts\2026\Customers\Reports\Final Report.xlsx

Every character contributes to the path length, including:

  • Drive letter

  • Colon

  • Backslashes

  • Folder names

  • Subfolder names

  • Filename

  • Filename extension

Therefore, even when the actual filename is relatively short, a very deep directory structure can create an extremely long path.

For example:

D:\Company Data\
  Customers\
    Financial Year 2026-2027\
      North India\
        Delhi\
          Corporate Customers\
            Customer ABC Private Limited\
              Accounting Documents\
                GST\
                  Monthly Returns\
                    August\
                      Supporting Documents\
                        GST Reconciliation Final August 2026.xlsx

This type of directory structure can eventually encounter application path-length limitations.


2. What Is the Famous 260-Character Windows Limit?

Traditional Win32 programming commonly uses a constant called:

MAX_PATH

Its traditional value is:

260 characters

Microsoft explains that many Windows APIs historically limited normal paths to MAX_PATH, defined as 260 characters.

This is why Windows users have historically encountered errors such as:

Path too long

or:

Destination Path Too Long

or application-specific messages similar to:

The specified path, file name, or both are too long.

3. Why Did Windows Have a 260-Character Limit?

The limitation has substantial historical roots.

Many older Windows applications were developed around Win32 APIs and data structures designed with MAX_PATH in mind.

Applications often allocated buffers approximately large enough to hold the traditional path length.

Consequently, simply removing the restriction globally could cause compatibility problems with older software.

Microsoft therefore adopted a compatibility-oriented approach.

Instead of suddenly forcing every application to use long paths, Windows allows applications designed for the newer behavior to opt in.

This protects legacy software while allowing modern applications to use much longer paths.


4. Why Is “Enable Win32 Long Paths” Available?

The policy exists primarily to remove the traditional MAX_PATH restriction from supported Win32 file-system operations for applications designed to use the capability.

When enabled, appropriately designed applications can access paths beyond the normal 260-character limitation.

Microsoft describes the policy as allowing manifested Win32 applications and compatible packaged applications to access paths beyond the normal 260-character limit.


5. Does Enabling It Remove the 260-Character Limit Everywhere?

No.

This is probably the most important technical point about this setting.

For a traditional Win32 application to benefit from long-path support, Microsoft documents two important requirements:

Requirement 1 – Windows long paths must be enabled

The registry value:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem

must contain:

LongPathsEnabled

with:

DWORD = 1

Requirement 2 – The application must support long paths

The application's manifest must declare:

<longPathAware>true</longPathAware>

More precisely, Microsoft shows the manifest setting as:

<ws2:longPathAware>true</ws2:longPathAware>

Therefore:

Windows long paths enabled
             +
Application is long-path aware
             =
Long-path capable Win32 operations

Enabling the policy alone cannot repair software that internally assumes a 260-character buffer or otherwise imposes its own path limitation.


6. Benefits of Enabling Long Paths

Long-path support can provide several practical advantages.

Deep Folder Structures

Businesses often organize information through many folder levels:

Company
 └── Department
      └── Customer
           └── Financial Year
                └── Project
                     └── Documents
                          └── Reports

The combined path can become extremely long.

Long-path-aware applications can handle these structures more reliably.

Software Development

Development projects can contain deeply nested directories generated by:

  • Package managers

  • Git repositories

  • Build systems

  • SDKs

  • Frameworks

  • Dependency trees

  • IDEs

Long path support can therefore be especially valuable on developer workstations and build systems.

File Servers

Company file servers frequently contain deeply organized customer and department directories.

Long paths can reduce failures when compatible software processes such structures.

Backup Applications

A backup application may reproduce an entire folder hierarchy underneath another backup directory.

For example:

D:\Backup\Server01\Users\Department\Projects\...

The backup prefix itself adds characters to every original path.

ZIP and Archive Extraction

An archive might already contain deeply nested folders.

Extracting it inside:

C:\Users\User\Downloads\Downloaded Software\Extracted\

adds even more characters.

A compatible extraction application with long-path support can better handle such cases.

Software Installation

Some development tools and enterprise applications create complex directory structures during installation.

Long path capability can reduce path-related failures when the installer itself supports it.


7. Should You Enable Long Paths?

For most modern business PCs, IT workstations, development computers, and servers, enabling the operating-system capability is generally reasonable when long paths are required.

It can be particularly useful for:

  • Developers

  • IT administrators

  • File servers

  • Backup servers

  • Document repositories

  • Source-code systems

  • Build servers

  • Large archives

  • RDS environments

  • Application servers

However, remember that enabling the policy does not guarantee compatibility with every program.

Legacy applications should still be tested.


8. Method 1 – Enable Long Paths Using Group Policy

On Windows editions containing the Local Group Policy Editor, this is usually the most administrator-friendly method.

Press:

Windows + R

Enter:

gpedit.msc

Press Enter.

Navigate to:

Computer Configuration
   ↓
Administrative Templates
   ↓
System
   ↓
Filesystem

Locate:

Enable Win32 long paths

Double-click it.

Select:

Enabled

Then click:

Apply
OK

Microsoft documents this policy at:

Computer Configuration
> Administrative Templates
> System
> Filesystem
> Enable Win32 long paths

9. Force Group Policy Update

After changing the policy, open an elevated Command Prompt and run:

gpupdate /force

A restart is advisable, especially because running processes may have already cached the previous long-path configuration.


10. How to Disable Long Paths Using Group Policy

Open:

gpedit.msc

Navigate to:

Computer Configuration
> Administrative Templates
> System
> Filesystem

Open:

Enable Win32 long paths

Select:

Disabled

Click:

Apply
OK

Then restart Windows or restart affected applications as appropriate.

You can also select Not Configured if you want the policy to stop explicitly controlling the setting.


11. Method 2 – Enable Long Paths Using Registry Editor

This method is particularly useful where Group Policy Editor is unavailable or where administrators need direct configuration.

Press:

Windows + R

Enter:

regedit

Press Enter.

Navigate to:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem

Find:

LongPathsEnabled

It should be a:

REG_DWORD

Set its value to:

1

Meaning:

1 = Long paths enabled
0 = Long paths disabled

Microsoft officially documents this registry location and value.


12. What If LongPathsEnabled Does Not Exist?

Navigate to:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem

Right-click an empty area and select:

New
> DWORD (32-bit) Value

Name it exactly:

LongPathsEnabled

Double-click it and enter:

1

You create a DWORD (32-bit) Value even on a 64-bit version of Windows because that is the registry value type defined for this setting.


13. Registry File to Enable Long Paths

Administrators can create a .reg file containing:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem]
"LongPathsEnabled"=dword:00000001

Save it as, for example:

Enable-Long-Paths.reg

Run it with appropriate administrative privileges and restart the affected applications or computer.


14. Registry File to Disable Long Paths

Use:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem]
"LongPathsEnabled"=dword:00000000

Save it as:

Disable-Long-Paths.reg

15. Method 3 – Enable Long Paths Using PowerShell

Open PowerShell or Windows Terminal as Administrator.

Run:

New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem" `
-Name "LongPathsEnabled" `
-Value 1 `
-PropertyType DWORD `
-Force

This is also the PowerShell approach documented by Microsoft.


16. Disable Long Paths Using PowerShell

Run PowerShell as Administrator:

Set-ItemProperty `
-Path "HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem" `
-Name "LongPathsEnabled" `
-Value 0

Restart affected applications or reboot Windows afterward.


17. Check Whether Long Paths Are Enabled

Run:

Get-ItemPropertyValue `
-Path "HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem" `
-Name "LongPathsEnabled"

If the output is:

1

the operating-system setting is enabled.

If the output is:

0

it is disabled.

Remember that this confirms the Windows configuration, not whether a particular application supports long paths.


18. Check Using Command Prompt

Open Command Prompt as Administrator and run:

reg query "HKLM\SYSTEM\CurrentControlSet\Control\FileSystem" /v LongPathsEnabled

An enabled configuration should show a value equivalent to:

LongPathsEnabled    REG_DWORD    0x1

19. Enable It Directly from Command Prompt

Run an elevated Command Prompt:

reg add "HKLM\SYSTEM\CurrentControlSet\Control\FileSystem" /v LongPathsEnabled /t REG_DWORD /d 1 /f

To disable:

reg add "HKLM\SYSTEM\CurrentControlSet\Control\FileSystem" /v LongPathsEnabled /t REG_DWORD /d 0 /f

20. Why Might a Restart Be Required?

Microsoft notes that the registry value can be cached per process after an affected Win32 file or directory function is first called.

That means changing:

LongPathsEnabled

does not necessarily alter the behavior of an application that is already running.

Some Windows processes may also have started long before the setting was changed.

Therefore, after enabling or disabling long paths:

  1. Save your work.

  2. Close affected applications.

  3. Restart the applications.

  4. Preferably reboot Windows when making a system-wide administrative change.


21. Why Long Paths May Still Not Work After Enabling the Setting

This is the most common source of confusion.

Suppose:

LongPathsEnabled = 1

but an application still displays:

Path too long

The Windows setting may be completely correct.

The application itself may not support the feature.

Microsoft specifically states that enabling the registry setting affects applications that have been modified to take advantage of long paths; it does not automatically change every application.


22. The Application Manifest Requirement

Developers of Win32 applications can declare long-path awareness in the application manifest.

A typical declaration is:

<application xmlns="urn:schemas-microsoft-com:asm.v3">
    <windowsSettings xmlns:ws2="http://schemas.microsoft.com/SMI/2016/WindowsSettings">
        <ws2:longPathAware>true</ws2:longPathAware>
    </windowsSettings>
</application>

Microsoft documents longPathAware as enabling paths exceeding MAX_PATH and notes support beginning with Windows 10 version 1607.

This is important for software developers creating Windows utilities.


23. Which Windows APIs Can Benefit?

Microsoft lists numerous Unicode Win32 file and directory functions for which the traditional MAX_PATH restriction can be removed when the application properly opts in.

Examples include:

CreateDirectoryW
RemoveDirectoryW
CopyFileW
CopyFile2
CopyFileExW
CreateFileW
CreateFile2
DeleteFileW
FindFirstFileW
FindNextFileW
GetFileAttributesW
MoveFileW
MoveFileExW
ReplaceFileW
SearchPathW

This is another reason the setting should not be interpreted as simply changing one universal Windows number from 260 to something larger.


24. What Is the Maximum Length After Long Paths Are Enabled?

There is not simply a new universal replacement such as:

260 → 1,000

Windows' Unicode APIs can work with extended-length paths approaching approximately 32,767 characters, subject to API, file-system, component, application, and path-format restrictions.

Therefore, it is better to think of the setting as:

Removing MAX_PATH from supported operations

rather than:

Changing MAX_PATH from 260 to another fixed small number

25. Long Paths Do Not Mean Unlimited Filename Length

This distinction is important.

Consider:

C:\Department\Customer\Project\2026\Report.xlsx

The path length is the combined length of the entire location.

The filename is only:

Report.xlsx

Enabling Win32 long paths does not mean you can create a single filename containing tens of thousands of characters.

Individual file-system components still have their own limits.


26. Long Path vs Long Filename

Long Filename

Example:

Annual Financial Reconciliation and GST Verification Report August 2026.xlsx

Long Path

Example:

D:\Customers\Delhi\Corporate\2026\Accounts\GST\Returns\August\Supporting Documents\Annual Financial Reconciliation and GST Verification Report August 2026.xlsx

The second problem occurs because every folder contributes to the total path length.


27. What About UNC Network Paths?

Network resources commonly use UNC paths such as:

\\Server01\Accounts\Customers\CompanyABC\2026\GST\Documents\

Network paths can become long extremely quickly because the server and share portions also contribute to the complete path.

Long-path-capable APIs can work with extended UNC formats where applicable, but the client application, API, file system, remote software, and other components in the workflow must all support the required behavior.

Do not assume that enabling one registry setting guarantees every network application can process arbitrarily long UNC paths.


28. Does This Setting Make Windows Faster?

No.

Enabling long paths is primarily a compatibility and functionality setting, not a performance optimization.

It normally does not:

  • Increase CPU performance

  • Increase RAM

  • Speed up Windows

  • Increase disk speed

  • Improve gaming

  • Improve Internet speed

  • Reduce boot time

Its purpose is to allow compatible applications to work with longer paths.


29. Does It Consume Additional RAM or Disk Space?

There is no meaningful everyday RAM or storage penalty merely from enabling the policy.

It changes the path-handling capability available to compatible applications.


30. Is It Safe to Enable?

Generally, yes, particularly on modern managed Windows systems where long paths are required.

However, enabling the capability does not magically modernize legacy software.

Potential issues can still occur with:

  • Old applications

  • Old backup utilities

  • Legacy installers

  • Old ZIP/archive programs

  • Custom business applications

  • Scripts with hard-coded path assumptions

  • Software using fixed-size buffers

  • Cross-platform applications with their own limits

Therefore, enterprise administrators should test business-critical legacy software.


31. Why Can One Application Open a Long Path While Another Cannot?

Because path support is partly application-dependent.

For example:

Application A → Long-path aware → Works
Application B → Legacy MAX_PATH logic → Fails

Both programs may be running on exactly the same Windows installation.

This does not necessarily indicate that the Windows policy is malfunctioning.


32. Common Errors Related to Long Paths

Typical messages include:

Destination Path Too Long
Path Too Long
File name too long
The specified path, file name, or both are too long
Cannot copy file
Cannot create directory
File not found

The last error can be particularly confusing because a program may report a file as missing when its real problem is that it cannot correctly process the complete path.


33. Troubleshooting: LongPathsEnabled = 1 but Problem Remains

Check the following.

1. Restart the Application

The process may have cached the old setting.

2. Restart Windows

Microsoft notes that a reboot may be necessary for all applications to recognize the new value.

3. Check the Registry

Run:

reg query "HKLM\SYSTEM\CurrentControlSet\Control\FileSystem" /v LongPathsEnabled

Confirm:

0x1

4. Check Group Policy

Open:

gpedit.msc

Verify:

Computer Configuration
> Administrative Templates
> System
> Filesystem
> Enable Win32 long paths

5. Check Application Compatibility

This is critical.

If only one application fails while another application works with the same path, suspect an application limitation.

6. Shorten the Parent Directory

Temporarily move the data closer to the root.

Instead of:

C:\Users\User\Downloads\Projects\Customer Projects\2026\Project\

try:

C:\Temp\

If the operation suddenly succeeds, path length is a strong suspect.


34. Practical Workaround for Legacy Applications

Even after enabling long paths, some older programs will still fail.

The easiest workaround is often to shorten the directory structure.

Instead of:

C:\Users\Administrator\Documents\Customer Data\Financial Year 2026-2027\Backup\Software\Data\

use something like:

D:\Data\

This can dramatically reduce path length without changing filenames.


35. Enterprise Group Policy Deployment

In an Active Directory environment, administrators can deploy the setting centrally through Group Policy.

Configure:

Computer Configuration
> Administrative Templates
> System
> Filesystem
> Enable Win32 long paths

Set:

Enabled

Link the GPO to the appropriate:

  • Organizational Unit

  • Workstations

  • Servers

  • RDS servers

  • Development machines

This is preferable to manually editing the registry on dozens or hundreds of computers.

Microsoft also documents management of the policy through its Policy CSP for managed Windows devices.


36. Recommended Configuration for IT Administrators

A practical modern environment can use:

Enable Win32 long paths = Enabled

while continuing to enforce sensible directory naming standards.

Do not use long-path support as an excuse to create unnecessarily complicated directory structures.

Good:

D:\Clients\ABC\2026\GST\Aug\

Unnecessarily complex:

D:\Corporate Customer Information\
   Active Customers\
   Financial Year 2026-2027\
   Goods and Services Tax\
   Monthly GST Documents\
   August 2026\

Good information architecture still matters.


37. Developer Recommendation

If you develop Windows desktop software that may work with customer-selected directories, backups, exports, archives, reports, or deeply nested folders, consider long paths during application design.

Do not assume:

Every path <= 260 characters

Applications should:

  • Use modern Unicode file APIs

  • Avoid arbitrary 260-character buffers

  • Properly handle path-related exceptions

  • Test deeply nested paths

  • Declare long-path awareness where appropriate

  • Test on supported Windows versions

  • Display useful errors when another dependency cannot handle a path

For Win32 applications, Microsoft's documented manifest mechanism includes:

<ws2:longPathAware>true</ws2:longPathAware>

38. Important Difference: OS Support vs Application Support

A useful troubleshooting model is:

Windows Capability
       ↓
Application Capability
       ↓
API/Framework Capability
       ↓
File-System/Remote-System Constraints
       ↓
Actual Operation

If any required layer cannot handle the path, the operation may fail.

Therefore:

LongPathsEnabled = 1

should never be interpreted as:

Every program now supports every long path.

39. Quick Configuration Summary

Requirement Setting
Policy Enable Win32 long paths
Group Policy Path Computer Configuration > Administrative Templates > System > Filesystem
Registry Path HKLM\SYSTEM\CurrentControlSet\Control\FileSystem
Registry Value LongPathsEnabled
Registry Type REG_DWORD
Enable Value 1
Disable Value 0
Application requirement Must support/opt in to long paths where required
Win32 manifest setting longPathAware
Traditional limit MAX_PATH / 260 characters
Reboot Recommended after system-wide change

40. FAQ – Enable Win32 Long Paths

Q1. What is Enable Win32 long paths?

It is a Windows policy that allows compatible applications to use supported Win32 file-system operations without the traditional 260-character MAX_PATH restriction.

Q2. Why is the traditional limit 260 characters?

Many historical Win32 applications and APIs were designed around the MAX_PATH constant, defined as 260 characters.

Q3. Which Windows versions support the modern long-path opt-in mechanism?

Microsoft documents it beginning with Windows 10 version 1607 and later.

Q4. How do I enable it using Group Policy?

Open:

gpedit.msc

Navigate to:

Computer Configuration
> Administrative Templates
> System
> Filesystem
> Enable Win32 long paths

Set it to:

Enabled

Q5. What is the registry location?

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem

Q6. What is the registry value?

LongPathsEnabled

It is a:

REG_DWORD

Q7. What value enables long paths?

1

Q8. What value disables long paths?

0

Q9. Can I enable it through PowerShell?

Yes:

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

Q10. Do I need to restart Windows?

A restart is recommended. Microsoft explains that the setting can be cached on a per-process basis, so already-running applications may continue using the old state.

Q11. I enabled it, but my application still reports “Path Too Long.” Why?

The application itself may not support long paths. For many Win32 applications, Windows configuration and application opt-in are both necessary.

Q12. Does File Explorer automatically gain unlimited path support?

Do not assume so. Long-path behavior varies according to the component and application performing the operation. The policy is specifically about enabling compatible applications to use the newer Win32 behavior.

Q13. Does enabling long paths improve Windows performance?

No. It is a file-path compatibility feature, not a performance optimization.

Q14. Is enabling long paths dangerous?

The setting itself is generally safe on modern Windows installations, but older applications may continue to impose their own restrictions. Test important legacy applications before organization-wide deployment.

Q15. Does this mean a filename can contain 32,000 characters?

No. Total path length and the maximum size of an individual path component or filename are different concepts.

Q16. Can it help with ZIP extraction errors?

Yes, if the failure is caused by path length and the extraction software supports long paths. Legacy archive utilities may still fail.

Q17. Can it help software developers?

Yes. Development projects often contain deeply nested dependencies, repositories, build outputs, and generated directories.

Q18. Can it be enabled on Windows Server?

Yes, modern Windows Server environments can use long-path support, subject to application compatibility.

Q19. Should I enable it on an RDS server?

It can be useful when users or applications work with deeply nested shared folders, document repositories, archives, or development data. Test important RDS applications before deploying the setting broadly.

Q20. Can I deploy it through domain Group Policy?

Yes. In an Active Directory environment, administrators can configure Enable Win32 long paths through a computer-based Group Policy and deploy it to appropriate systems.

Q21. Why does one application work while another fails with the same path?

Because the first application may support the modern long-path behavior while the second still relies on legacy MAX_PATH assumptions.

Q22. What should I do if an old application cannot handle long paths?

Shorten the directory structure or move the working directory closer to the drive root, for example:

C:\Work\

instead of:

C:\Users\User\Documents\Company\Projects\Current Projects\Work\

Q23. Does LongPathsEnabled automatically modify applications?

No. It only makes the Windows capability available. It does not rewrite application code or manifests.

Q24. Is “Enable Win32 long paths” the same as increasing MAX_PATH?

Not exactly. Technically, supported applications can opt out of the traditional MAX_PATH restriction for supported APIs rather than Windows simply changing MAX_PATH to a larger number.

Q25. What is the best troubleshooting test?

Confirm:

LongPathsEnabled = 1

restart Windows, then test the same long path with different applications. If one works and another fails, application compatibility is likely the issue.


Conclusion

Enable Win32 long paths is an important Windows compatibility feature designed to overcome one of the most familiar limitations inherited from older Win32 software: the 260-character MAX_PATH restriction.

For administrators, the core configuration is:

Computer Configuration
> Administrative Templates
> System
> Filesystem
> Enable Win32 long paths

or:

HKLM\SYSTEM\CurrentControlSet\Control\FileSystem
LongPathsEnabled = 1

However, the most important concept is:

Enabling LongPathsEnabled does not automatically make every application long-path compatible.

The application must also use compatible APIs and, where required, declare itself long-path aware.

For modern business systems, Windows servers, developer PCs, RDS environments, backup systems, and document repositories, enabling the capability can prevent many path-related problems. At the same time, maintaining sensible and reasonably short directory structures remains good administrative practice.

YOUR FEEDBACK

Was this guide useful?

Your answer helps us keep BISONKB accurate and practical.

BISON AI

Ask about “Enable Win32 Long Paths in Windows 10/11 and Windows Server – What It Is, Why It Exists, Benefits, Configuration, Registry, Group Policy, PowerShell, Compatibility and Troubleshooting”

This interface is ready to connect to your preferred AI provider. No article or user data is sent until that service is configured.

THE BISON BRIEF

Practical IT knowledge, once a week.

New troubleshooting guides, scripts and infrastructure notes. No noise.

By subscribing, you agree to our privacy policy.