Windows 10 "Enable NTFS long paths policy" option missing

246,896

Solution 1

The value has moved from NTFS directly into Local Computer Policy > Computer Configuration > Administrative Templates > System > Filesystem in the RTM version of the Version 1607.

enter image description here

enter image description here

Solution 2

Modify applicable registry settings as listed in the below answers to potentially help resolve.

Know your Build Version

You can run WINVER to see what build your Windows 10 is but from what I gather with a little reading, the enabling of NTFS long paths is available as of Build 14352 and later, so check to see if your build release is older than that for an explanation why it's not an option from Group Policy otherwise.

enter image description here


Update - Newer Version Builds

WARNING: Before working in the Windows Registry, it is always a good idea to back it up first, so that you have the option of restoration, should something go wrong. This article shows the different ways to back up and restore the Windows Registry or its Hives.

It seems that the registry locations with some of the latest Windows 10 Anniversary updates have changed a bit to enable the Long Paths to help overcome the Windows API file paths and names that exceed a 255-260 character limit for such programs in Windows that can utilize this once enabled.

Registry Import Enabling Long Paths

Windows Registry Editor Version 5.00
   
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem]
"LongPathsEnabled"=dword:00000001

Optional Registry Value

The below registry key value changed when the option was made with the Local Group Policy editor to enable Enable Win32 long paths but the <SID> portions will likely be different per account defined with a profile, etc. on the local Windows 10 machine s plug those values in accordingly per what you see when you look there with regedit.

Windows Registry Editor Version 5.00

[HKEY_USERS\S-1-5-21-[<SID>-<SID>-<SID>]-1001\SOFTWARE\Microsoft\Windows\CurrentVersion\Group Policy Objects\{B0D05113-7B6B-4D69-81E2-8E8836775C9C}Machine\System\CurrentControlSet\Control\FileSystem]
"LongPathsEnabled"=dword:00000001

enter image description here

NOTE: Once you have these imported, you'll want to reboot to ensure the changes become effective just in case. It has been reported that these settings and even Group Policy settings that change these values and others do NOT always work with File Explorer or all Windows programs as those have to be coded to handle this explicitly from what I gather so this is not a 100% for sure will fix all issues but this is Microsoft's step forward moving to resolve this limitation.


Previous Version Builds

Warning: These below settings may not work for all builds of Windows 10 so you will need to backup, check, test, etc. but see the options above if you've not already.

Using the Registry instead at HKLM Level

  1. Hit the Windows key, type regedit and press Enter

  2. Go to the following Registry key: HKEY_LOCAL_MACHINE\System\CurrentControlSet\Policies

  3. On the right side, create a new 32-bit DWORD value named LongPathsEnabled. Set its value data to 1.

enter image description here

  1. Restart Windows 10

source


Using the Registry instead at HKCU Level

  1. Hit the Windows key, type regedit and press Enter.
  2. Navigate to: HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Group Policy Objects{48981759-12F2-42A6-A048-028B3973495F} Machine\System\CurrentControlSet\Policies
  3. Select the LongPathsEnabled key, or create it as a DWORD (32-bit) value if it does not exist.
  4. Set the value to 1 and close the Registry Editor.

source

Share:
246,896
Dimitar Tsonev
Author by

Dimitar Tsonev

Updated on September 18, 2022

Comments

  • Dimitar Tsonev
    Dimitar Tsonev over 1 year

    For some time, Microsoft has supported an option to remove the limit of 260 symbols for NTFS file name length.

    The web is full of articles, describing what should be done.

    1. Hit the Windows key, type gpedit.msc and press Enter.
    2. Navigate to Local Computer Policy > Computer Configuration > Administrative Templates > System > Filesystem > NTFS.
    3. Double click the Enable NTFS long paths option and enable it.

    However, I don't have such option. Please see the screenshot below:

    screenshot

    Am I missing some Windows update, or is it something else?

  • Klas Mellbourn
    Klas Mellbourn over 7 years
    I have Version 1607 (OS Build 14393.105) and i still do not have the option there, either in the poilicy editor or in regedit. @magicandre1981 has the correct solution
  • gyozo kudor
    gyozo kudor over 7 years
    For HKCU I don't have such a folder/key. Do I need one big folder named Group Policy Objects{48981759-12F2-42A6-A048-028B3973495F} Machine or did you just forget the slashes, something like this? Group Policy Objects\{48981759-12F2-42A6-A048-028B3973495F}\Machine
  • gyozo kudor
    gyozo kudor over 7 years
    Winver says the following: Version: 1607 (OS Build: 14393.105)
  • gyozo kudor
    gyozo kudor over 7 years
    This path: Local Computer Policy > Computer Configuration > Administrative Templates > System > Filesystem is missing for me. I have win 10 home premium but installed gpedit using superuser.com/questions/1018145/…
  • Ramhound
    Ramhound over 7 years
    @gyozokudor - You can easily add the group policy editor to Windows 10 Home.
  • Ramhound
    Ramhound over 7 years
  • gyozo kudor
    gyozo kudor over 7 years
    @Ramhound I've added it, my main problem is that the setting is missing.
  • Ramhound
    Ramhound over 7 years
    @gyozokudor - Which is the reason, any group policy, has a corresponding registry key assosicated with it. Of course I will point out, that Windows Explorer, does not yet support the longer path names.
  • Coruscate5
    Coruscate5 about 7 years
    It's worth noting that most programs (Windows Explorer included) don't yet recognize the long file paths feature yet - robocopy is one of the few built-in exceptions that will copy directory files with the new feature
  • magicandre1981
    magicandre1981 about 7 years
    @Coruscate5 yes, as I already posted in a 2nd question: superuser.com/a/1114683/174557
  • Vomit IT - Chunky Mess Style
    Vomit IT - Chunky Mess Style almost 7 years
    See the section in the answer Registry Import Enabling Long Paths for the registry settings that need applied for the newer versions of Windows 10 where using the gpedit.msc method is not available or if you just want to use that method instead of the Group Policy. The older version registry is at the bottom of the answer with applicable detail and the newer is up top but if you read it thru, it should be clear and not overly complicated.
  • Royi
    Royi about 6 years
    Will it become On by default in the future?
  • Kelvin
    Kelvin over 4 years
    As @Coruscate5 said Windows Explorer and Visual Studio still imposes the 260 chars rule. However, PowerShell and Visual Studio Code seem to understand the longer file / directory path.
  • Ryan
    Ryan over 4 years
    I just tried this Enable Win32 long paths Local Group Policy on my Win 10 machine after finding your answer here. Unfortunately, I still get this error when trying to upload an image to Facebook by pasting (as a filename) a URL of an image on the web: "The path is too long. Try a shorter name."
  • magicandre1981
    magicandre1981 over 4 years
    @Ryan this settings doesn't fix the issue. It is 1 part. The Apps must have the entry longPathAware in its manifest
  • Ryan
    Ryan over 4 years
    @magicandre1981 If you happen to know how to add it to Chrome's manifest, I have a question here: superuser.com/questions/1504123/… Thanks.
  • magicandre1981
    magicandre1981 over 4 years
    @Ryan configure Windows to prefer external manifest, export the chrome manifest with a ResourceHacker and add the longPathAware entry to the manifest file named chrome.exe.manifest
  • Ryan
    Ryan over 4 years
    @magicandre1981 Thank you!
  • riQQ
    riQQ almost 4 years
    With Windows 10 1809 the entry is neither in Filesystem nor in Filesystem\NTFS. Was this removed from the Local Group Policies?
  • riQQ
    riQQ almost 4 years
    You only have to change the value in CurrentControlSet (see stackoverflow.com/questions/291519/…)
  • magicandre1981
    magicandre1981 almost 4 years
    @riQQ I still see it in Win10 2004, so I guess you overlook it.
  • riQQ
    riQQ almost 4 years
    @magicandre1981 I double checked. I'm pretty sure it's not there. Can this be hidden in Windows 10 Enterprise?
  • magicandre1981
    magicandre1981 almost 4 years
    I checked a 1809 VM and I can see the entry
  • magicandre1981
    magicandre1981 over 3 years
    @riQQ have you checked the 1809 again?
  • riQQ
    riQQ over 3 years
    @magicandre1981 yes, I checked multiple times. I don't know the Enterprise customization options, but I can imagine that my company removed some of these options if that is possible. Setting long path via registry works until it's overwritten, probably by domain GPOs.
  • riQQ
    riQQ over 3 years
    I can't find a Microsoft source either. I can only anecdotally confirm, that it works only changing CurrentControlSet on Windows 10 Enterprise 1809.
  • magicandre1981
    magicandre1981 over 3 years
    @riQQ ok, this is possible, I checked my 1809 Pro VM
  • xenophōn
    xenophōn about 3 years
    You don't need to modify both CurrentControlSet and ControlSet001, since the former one is just a link to either ControlSet001, ControlSet002, or ControlSet003, etc. Generally the node with the largest number suffix is currently using.