locked
How to enable paths longer than 260 characters in windows 2012 R2 RRS feed

  • Question

  • Hi Dears,

    My company use Windows server 2012 R2 
    and shared a map drive to all users 
    but the folders path that is longer than 260 characters the permission security cannot apply to it  
    and does not allow to copy or cut or doing anything and I do not want to change the file location 
    so how can I create a GPO to allow and enable long path in Server 2012 R2 .

    Best Regards,



    • Edited by baba88n Tuesday, June 19, 2018 8:38 AM
    Tuesday, June 19, 2018 8:11 AM

Answers

All replies

  • Hi baba88n,

    I'm on server 2012R2, there's still the long path limit. Enable Win32 long paths” policy requires at least Windows server 2016. Windows 10. It may not work on the previous windows OS.

    So you couldn't break this on windows server 2012R2

    https://msdn.microsoft.com/en-us/library/aa365247.aspx#maxpath

    https://social.technet.microsoft.com/Forums/ie/en-US/535ec156-de98-43ed-8c46-10a9773c8b12/gpo-enable-win32-long-paths?forum=winserverGP

    To fix the long path issue, you may need to reduce the length of the path. For example, move the folder so it has a shorter path or shorten the file name.

    Or creating a junction point can also help workaround this issue

    Here is the thread discussed about this issue, you could also take a look.

    https://social.technet.microsoft.com/Forums/en-US/aaa4c4e9-dfe9-42e1-b246-193b81d71100/255-characters-limit-in-files-and-folders-if-there-is-a-limit-why-windows-does-allow-it?forum=winserverfiles

    Best Regards,

    Mary


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    • Proposed as answer by Mary Dong Thursday, June 21, 2018 9:33 AM
    • Marked as answer by baba88n Sunday, July 1, 2018 8:20 AM
    Wednesday, June 20, 2018 1:51 AM
  • Hi dear Mary,

    thanks so much for your Reply , so there is no way to do in registry or By GPO 

    regsrds


    baban jamal ali

    Wednesday, June 20, 2018 8:24 AM
  • Hi,

    I'm afraid on server 2012R2, we still couldn't break the limit.

    Best Regards,

    Mary


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    Wednesday, June 20, 2018 8:47 AM
  • Hi,

    Just checking in to see if the information provided was helpful. Please let us know if you would like further assistance.

    Best Regards,

    Mary


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    Thursday, June 21, 2018 9:33 AM
  • Hi dear Mary ,

    yeah it was very helpful but I still have same issue 

    because of our folder permissions I can not rename any folders 

    even this cause me issue in share point 

    so my only solution is to find a way to allow more than 260 char path 

    because in long paths my permissions will also not apply 


    baban jamal ali

    Sunday, June 24, 2018 7:31 AM
  • hi dear Mary,

    in my file server 2012 R2  is there is any thing to do in registry to remove this limit or increase it to more than 256 char 

    Regards,


    baban jamal ali

    Sunday, June 24, 2018 8:27 AM

  • baban jamal ali

    Sunday, June 24, 2018 8:32 AM
  • is there is any GPO like this in Windows Server 2012R2 not windows 10 

    baban jamal ali

    Sunday, June 24, 2018 8:32 AM
  • Hi,

    I'm afraid there's no such GPO settings on server 2012R2.

    Thanks for your understanding.

    Best Regards,

    Mary


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    Monday, June 25, 2018 2:02 AM
  • Hi dear Mary

    so can I edit any thing in registry edit something to fix this 

    because I can not rename or change place of any folders 

    because I have lots of permission on Folders 

    Best Regards,


    baban jamal ali

    Tuesday, June 26, 2018 10:23 AM
  • can I use these steps on my file server 2012R2 ?

    enable NTFS Long Paths in Windows 10 using a Registry tweak

    1. Open Registry Editor.

    2. Go to the following Registry key:

    HKEY_LOCAL_MACHINE\System\CurrentControlSet\Policies

    If you don't have such a key, then just create it.

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

    Note: Even if you are running 64-bit Windows, you still need to create a 32-bit DWORD value.

    4. Restart Windows 10.

    regards,


    baban jamal ali


    • Edited by baba88n Tuesday, June 26, 2018 10:36 AM
    Tuesday, June 26, 2018 10:35 AM
  • Hi baba88n,

    Since these registry and related function is introduced to windows 10 and windows server 2016.

    Though you add the  registry  on server 2012R2, it still couldn't work.

    Thanks for your support and understanding.

    Best Regards,

    Mary


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    • Proposed as answer by Mary Dong Thursday, June 28, 2018 6:36 AM
    Wednesday, June 27, 2018 1:31 AM
  • Hi,
    Could the above reply be of help? If yes, you may mark it as answer, if not, feel free to feed back
    Best Regards,
    Mary


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    Thursday, June 28, 2018 6:37 AM
  • Hi dear Mary,

    Thanks So much For your Helpful Answer so there is not any solution for that issue 

    right or is there is any tool third party to fix this issue 

    or 

    Is it possible to make a shortcut or relative path in Windows ? 

    Regards,


    baban jamal ali

    Thursday, June 28, 2018 8:24 AM
  • Hi,

    Since the security problem, I haven't find the recommendation about 3rd party software from Microsoft to break this. You may need to find by yourself. Thanks for your understanding.

    Another workaround is to create mklink for the single folder.

    But that seems could be applied in GPO.

    https://social.technet.microsoft.com/Forums/windowsserver/en-US/b265a575-3820-4f01-86fe-96167b1e7d25/gpo-to-create-junction-point?forum=winserverGP

    Best Regards,

    Mary


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    Friday, June 29, 2018 1:49 AM
  • Thanks So Much Dear I appreciate all your answers 

    baban jamal ali

    Sunday, July 1, 2018 8:21 AM