Remove Path length limit of 260 characters with Windows 10 / 11 260

With Windows 10 from build 14352 and with Windows 11, Microsoft has made it possible to override the maximum path length of 260.

Windows checks whether the path length is adhered to when files are created in drives. This problem can still occur if you move folders with substructures or work via mapped drives, because the check does not take place in this case or from the mapped drive onwards.

As of Windows 10 from build 14352 and with Windows 11, you can work around this using Group Policy and allow long file names.

Group policy configuration

In the Group Policy Editor, you can activate long Win32 paths via Computer Configuration – Administrative Templates – System – File System – NTFS.

image
Windows 11 Local Group Policy Editor Long Win32 Paths
image 2
Windows 11 Local Group Policy setting Long Win32 paths

Once Win32 paths are enabled, manifested Win32 applications and Windows Store applications on file systems that support it can access paths that exceed the normal path length of 260 characters. If this setting is enabled, the long paths are also accessible within the process.

Configuration via the registry to enable a path lenght over 260 characters

This value can also be configured in the registry. The appropriate registry key can be found under

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem\
Windows 11 Registry setting Long Win32 260 characters paths
Windows 11 Registry setting Long Win32 paths

Important note

This enables path length over 260 characters support for Win32 applications and Windows Store applications. There is no guarantee that this will work for third-party applications. I recommend to reduce the length of paths to 250 and this can be controlled e.g. with the tool TLPD. I would ignore the virus warnings for the tool, as this unfortunately happens more often with AutoIT-based tools. However, you can also do this with Powershell.

Get-ChildItem -Recurse -Force -ErrorAction SilentlyContinue | Where-Object {$_.FullName.Length -gt 250}

More tools i.e. a free Microsoft tool to use one mouse and keyboard on two PC’s, can be found here. A German version can be found here.

Avatar for Andreas Hartig
Andreas Hartig - MVP - Cloud and Datacenter Management, Microsoft Azure

Related Posts

the IT Operations dragon looking at multiple screens with Group Policies on them and the GPO Policy Analyzer checking them all

How to use the GPO Policy Analyzer

Managing Group Policy Objects across a complex Active Directory environment has always been a challenge. Administrators often inherit hundreds of GPOs with overlapping configurations, stale settings, and hidden conflicts. Finding…

Read more
WAU Happy Dragons crazy about 110 percent security

Schedule Winget Auto Updates for operational usage

Deploying Winget Auto Updates (WAU) gives you a functional update baseline, for full functionality we need to configure more to get ready for production. If servers query the Winget repository…

Read more
WAU Happy Dragons about improved security

Centralized Software Patch Management: Deploying Winget Auto Updates (WAU) via Active Directory GPO

Deploying Winget Auto Updates for Software Patch Management for managing third-party software updates across an IT infrastructure typically requires expensive enterprise solutions. This article provides a technical guide on how…

Read more
Gemini Generated Image 6s2cz6s2cz6s2cz6

Active Directory Planning Tool: Mapping Structures and Delegations with SMAD-X

Using an Active Directory Planning Tool is key for understanding complex Active Directory environments and often requires more than what traditional management consoles can provide. While tools such as Active…

Read more
Dragons looking at AccountLockout Tool

AD Account Lockout (Free Tool)

The AD Account Lockout tool is free and very valuable in troubleshooting account lockouts in Active Directory. This is a task as old as the directory service itself. Even in…

Read more
IT Architect doing Active Directory Visualization

Active Directory Visualization (Free Tools)

Designing and documenting Active Directory (AD) structures is always a long and complex exercise. Historically, this required either building full lab environments or settling for static Visio diagrams that became…

Read more