PREBYTES

PowerShell to disable the SMB proto in Win 8 and WS 2012

May 15th, 2017
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # ref: https://support.microsoft.com/en-us/help/2696547/how-to-enable-and-disable-smbv1,-smbv2,-and-smbv3-in-windows-vista,-windows-server-2008,-windows-7,-windows-server-2008-r2,-windows-8,-and-windows-server-2012
  2.  
  3. Write-Host "This PowerShell script disables the SMB protocols in Windows 8 and Windows Server 2012"
  4.  
  5. Set-SmbServerConfiguration -EnableSMB1Protocol $false
  6. Set-SmbServerConfiguration -EnableSMB2Protocol $false
  7.  
  8. Write-Host "You need to restart the system to make changes effective."
Advertisement
Add Comment
Please, Sign In to add comment