Skip to content

Instantly share code, notes, and snippets.

@bartvdbraak
Created November 27, 2024 16:01
Show Gist options
  • Save bartvdbraak/9d7945c1f90cf68dbc5579a7cd4f5cf9 to your computer and use it in GitHub Desktop.
Save bartvdbraak/9d7945c1f90cf68dbc5579a7cd4f5cf9 to your computer and use it in GitHub Desktop.
disable smb signing and guest logons on 24h2
# You might need adminstrator
Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters" -Name "AllowInsecureGuestAuth" -Value 1 -Type DWord
Set-GPRegistryValue -Name "EnableInsecureGuestLogons" -Key "HKLM\SOFTWARE\Policies\Microsoft\Windows\LanmanWorkstation" -ValueName "AllowInsecureGuestAuth" -Type Dword -Value 1
# if no RSAT
# Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\LanmanWorkstation" -Name "AllowInsecureGuestAuth" -Value 1 -Type DWord
Set-GPRegistryValue -Name "NetworkClientDigitallySignAlways" -Key "HKLM\SOFTWARE\Policies\Microsoft\Windows\LanmanWorkstation" -ValueName "RequireSecuritySignature" -Type Dword -Value 0
# if no RSAT
# Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters" -Name "RequireSecuritySignature" -Value 0 -Type DWord
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment