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

A dragon IT Architect in the shadowrun world using an Excel document and the Azure Quick Review Tool

Azure Quick Review 2.04 – High Level Assessments

With Azure Quick Review (azqr) you can quickly make a High Level Assessment of an “Azure Subscription” or “Resource Group”. Installation of Azure Quick Review You can download the files…

Spread the knowledge
Read more
A dragon IT Architect in the shadowrun world using Microsoft Tools like Windows LAPS to secure his datacenter, relaxing and watching a sitcom on TV

Securing Local Administrator Accounts with Windows LAPS: A Get Started Guide for Windows Server Environments

Managing local administrator accounts securely is a critical aspect of maintaining a robust and secure IT environment. With the introduction of the Windows Local Administrator Password Solution (LAPS) in newer…

Spread the knowledge
Read more
A dragon IT Architect in the shadowrun world using his notebook and keepassxc to safe the world from a virus attack

Securing Client Passwords with KeePassXC: A Consultant’s Guide to Autotyping and More

As consultants, managing multiple clients and their respective passwords can be a daunting task, especially when security is paramount. In this article, we will explore how KeePassXC, a powerful and…

Spread the knowledge
Read more
Windows Server 2025 Monitoring TCP/IP on http://hartiga.de

Windows Server 2025 – Monitoring TCP/IP

Monitoring open TCP/IP ports is crucial for maintaining the security and functionality of your Windows system. This article will guide you through using three powerful tools, netstat, powershell Get-NetTCPConnection and…

Spread the knowledge
Read more
Windows Admin using Winget

Easily manage Applications with WinGet v1.x

Microsoft has released WinGet, a package manager that is very well suited for installing and updating third-party applications. We are now installing applications with “WinGet” and learn how to manage…

Spread the knowledge
Read more
SFTP with Powershell Logo

Use SFTP with Powershell

If you want to use SFTP with Powershell to transfer files, you can do this with the Posh-SSH module. Installation of SFTP with Powershell To retrieve or copy data via…

Spread the knowledge
Read more