Created
November 23, 2023 18:59
-
-
Save SeanSobey/e2ef8e00493f2ed91dc64bf501570bbb to your computer and use it in GitHub Desktop.
Disable 256 character path length limitation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# See https://github.com/Disassembler0/Win10-Initial-Setup-Script | |
# Disable 256 character path length limitation (MAX_PATH), see https://www.autodesk.com/support/technical/article/caas/sfdcarticles/sfdcarticles/The-Windows-10-default-path-length-limitation-MAX-PATH-is-256-characters.html | |
Function DisablePathLengthLimit { | |
Write-Host "Disable path length limitation (MAX_PATH)..." | |
Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Type DWord -Value 1 | |
} | |
DisablePathLengthLimit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment