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