Created
November 27, 2024 16:01
-
-
Save bartvdbraak/9d7945c1f90cf68dbc5579a7cd4f5cf9 to your computer and use it in GitHub Desktop.
disable smb signing and guest logons on 24h2
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
# 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