Last active
May 13, 2017 06:10
-
-
Save hex128/2a9174ad7aed069a39aba90c0192c3bd to your computer and use it in GitHub Desktop.
Batch script to workaround ms17-010 SMB vulnerability https://technet.microsoft.com/en-us/library/security/ms17-010.aspx
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
| @echo off | |
| net session >nul 2>&1 | |
| if %errorLevel% == 0 ( | |
| sc.exe config lanmanworkstation depend= bowser/mrxsmb20/nsi | |
| sc.exe config mrxsmb10 start= disabled | |
| ) else ( | |
| echo Please run with Administrator rights.>&2 | |
| ) | |
| pause |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment