PREBYTES

Deactivate the SMB client in Windows

May 15th, 2017
276
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.43 KB | None | 0 0
  1. @echo on
  2. echo This script deactivates the SMB client in Windows Vista, Windows Server 2008, Windows 7, Windows Server 2008 R2, Windows 8, and Windows Server 2012
  3.  
  4. sc.exe config lanmanworkstation depend= bowser/mrxsmb20/nsi
  5. sc.exe config mrxsmb10 start= disabled
  6.  
  7. sc.exe config lanmanworkstation depend= bowser/mrxsmb10/nsi
  8. sc.exe config mrxsmb20 start= disabled
  9.  
  10. echo You need to restart the system to make changes effective.
  11.  
  12. pause
Advertisement
Add Comment
Please, Sign In to add comment