Skip to content

Commit

Permalink
fix: use correct flag for setting the type with Set-ItemProperty
Browse files Browse the repository at this point in the history
`-PropertyType` only exists for the `New-ItemProperty` function.
  • Loading branch information
Okeanos committed Feb 13, 2024
1 parent ba1ce9d commit 577c3eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion windows.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ Write-Host "Explorer"

# Allow paths longer than 260 characters (the default MAX_PATH length)
# https://learn.microsoft.com/en-us/windows/win32/fileio/maximum-file-path-limitation?tabs=powershell#enable-long-paths-in-windows-10-version-1607-and-later
Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1 -PropertyType DWORD -Force
Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1 -Type DWORD -Force

###############################################################################
# Start Menu and Taskbar #
Expand Down

0 comments on commit 577c3eb

Please sign in to comment.