LongPathsEnabled

Marius - Roma 371 Reputation points
2021-03-01T13:02:32.853+00:00

Is the registry setting [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem] LongPathsEnabled supported in Windows Server 2019? Is it supposed to work? Regards marius

Windows Server 2019
Windows Server 2019
A Microsoft server operating system that supports enterprise-level management updated to data storage.
3,780 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Candy Luo 12,711 Reputation points Microsoft Vendor
    2021-03-02T09:49:31.103+00:00

    Hi ,

    By setting the registry key LongPathsEnabled to 1, most of the common Win32 file and directory functions will be able to use file paths exceeding 260 characters.

    However, with the option enabled, Explorer still fails to use long file paths. Explorer is not long filepath aware. This is a by design behavior, as there are a lot of legacy APIs and DLLs which win32 applications depend on.

    As a workaround, you can try to create the folder using PowerShell.

    Best Regards,

    Candy

    --------------------------------------------------------------

    If the Answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.
    0 comments No comments

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.