Windows 2019, Not read files with file name is too long

Victor Aballai R 1 Reputation point
2021-01-11T22:03:18.747+00:00

I have migrated from another server all the files, however, I am unable to open the files that have a long path.

This problem is a solution ?, that obvious is not to change the directory structure.

I read them !!

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

2 answers

Sort by: Most helpful
  1. Anonymous
    2021-01-11T22:22:12.947+00:00

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

    --please don't forget to Accept as answer if the reply is helpful--

    0 comments No comments

  2. Jenny Feng 14,151 Reputation points
    2021-01-12T03:44:48.923+00:00

    @Victor Aballai R
    Hi,
    You could configure the Enable Win32 long paths setting for the NTFS file system, through Group Policy.
    You need to be able to set up this GPO using administrative templates (.admx) for Windows Server 2019.
    Folow these steps(Also for Windows Server 2019.):

    1. Download Windows 10 and Windows Server 2016 specific administrative templates – or .admx files.
    2. Install the downloaded .msi file Windows 10 and Windows Server 2016 ADMX.msi on a supported system. You also need user rights to run the Group Policy Management Editor (gpme.msc), or the Group Policy Object Editor (gpedit.msc).
    3. The administrative templates are installed in C:\Program Files (x86)\Microsoft Group Policy\Windows 10 and Windows Server 2016, or whatever directory you provided during the installation. Copy over the entire folder PolicyDefinitions to your Primary Domain Controller’s SYSVOL\domain\Policies directory.
    4. Verify you’ve copied the folder, and not just the files. The full path is: SYSVOL\domain\Policies\PolicyDefinitions. This is explained in Microsoft’s Technet article Managing Group Policy ADMX Files Step-by-Step Guide.

    Start your Group Policy Management console and click through to the location where you want to add the GPO. Create a new GPO: Create a GPO in this domain, and Link it here..., and provide your GPO with a relevant name.
    In the Settings tab, right click and choose Edit…. Now under Computer Configuration in the Group Policy Management Editor, click through to Policies > Administrative Templates > System > Filesystem. Configure and enable the Setting Enable Win32 long paths.

    Then run gpupdate in an elevated cmd.exe command prompt.
    For your reference:
    https://www.saotn.org/ntfs-long-paths-windows-server-2016-gpo/
    Note: This is a third-party link and we do not have any guarantees on this website. And Microsoft does not make any guarantees about the content.

    Hope above information can help you.

    ============================================

    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.

    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.