Skip to content

Instantly share code, notes, and snippets.

@SeanSobey
Created November 23, 2023 18:59
Show Gist options
  • Save SeanSobey/e2ef8e00493f2ed91dc64bf501570bbb to your computer and use it in GitHub Desktop.
Save SeanSobey/e2ef8e00493f2ed91dc64bf501570bbb to your computer and use it in GitHub Desktop.
Disable 256 character path length limitation
# 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