how to enable long path in w11

Samuel Santos 250 Reputation points
2024-08-30T19:23:45.2566667+00:00

I would like to enable the Windows 11 function to stop requiring the maximum limitation of 255 characters in a path, I have seen that Microsoft has some documentation that solves the problem, but it would be necessary to apply it to all computers registered in Intune.

Windows for business | Windows Client for IT Pros | User experience | Other
Microsoft Security | Intune | Other
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. MotoX80 36,291 Reputation points
    2024-08-31T12:13:55.3133333+00:00

    There are many sites on the internet that document how to set the registry to allow that. Here is a PowerShell statement.

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

    Command prompt version.

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

    Then reboot.

    https://learn.microsoft.com/en-us/windows/win32/fileio/maximum-file-path-limitation

    You do not need Intune for that. But you would need some tool to implement it on all of your workstations. How do you deploy software to your managed PC's? Do you have an Active Directory environment? Do you have a common admin account defined on each PC?

    You should also be aware that even if Windows supports long file names, some applications do not.

    https://learn.microsoft.com/en-us/office/troubleshoot/office-suite-issues/error-open-document

    0 comments No comments

  2. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.