Skip to content

Instantly share code, notes, and snippets.

@sswares
Forked from ypcrts/smb_is_compromised.ps1
Created May 24, 2020 19:53
Show Gist options
  • Save sswares/aa85e18c570b18a49ea02a05d39df021 to your computer and use it in GitHub Desktop.
Save sswares/aa85e18c570b18a49ea02a05d39df021 to your computer and use it in GitHub Desktop.
Windows 10 Hardening - Powershell
# disable smb 1
Disable-WindowsOptionalFeature -Online -FeatureName smb1protocol
# disable smb2 / smb3
Set-SmbServerConfiguration -EnableSMB2Protocol $false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment