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.

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

Related Posts

IT Operations Drache looking at Event Logs

Modern Windows Event Viewer – EventLogExpert

The project Windows Event Viewer – EventLogExpert provides a modern open-source toolset that fundamentally improves the way we interact with Windows Event Logs. Since troubleshooting .evtx files is often a…

Spread the knowledge
Read more
IT Developer Dragon red with bronze skin

Windows Terminal and Oh My Posh – personalization for improved coding

Windows Terminal and Oh My Posh are a great combination! In the past we looked here at how to utilize the Windows Terminal in a personalized way to improve usability…

Spread the knowledge
Read more
Winget and IaC SystemEngineerDragon

WinGet and IaC – Take Winget to the next level

WinGet and IaC are maybe your next step to automate your environment. In the past, managing third-party applications on Windows meant 3rd party tools or gathering MSI installers on network…

Spread the knowledge
Read more
Dragon IT Operations logfile tailing using Klogg

Tail for log files with Windows – 2026 Edition

I view a lot of log files—probably more than I’d like to admit. Whether it’s troubleshooting a hybrid infrastructure issue or debugging a cloud deployment, I always look for the…

Spread the knowledge
Read more
dragon it system engineer grc benchmark

Windows DNS Performance Testing

DNS issues don’t always show up as clear outages. Often they show up as annoying browser behaviour like “random delays on first page load”, “sometimes it works, sometimes it spins”,…

Spread the knowledge
Read more
IT Security Dragon reading Windows Event Logs

Windows Server Event Log and Event Log Policies

Windows Server Event Log for most teams are only used when something already smells like incident:💥 DC misbehaving,💥 file server “mysteriously slow”,💥 SOC asking for “all the logs you have…

Spread the knowledge
Read more