Created
October 2, 2020 18:01
-
-
Save seyerj/30dfab5b147e6120f26f8fad7b9972cd to your computer and use it in GitHub Desktop.
Disabled SMBv1 because it is a security risk.
This file contains 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 | |
: set logging | |
set LOGFILE=SMB1Protocol-settings-deploy.log | |
call :LOG > %LOGFILE% | |
exit /B | |
:LOG | |
: ############################### | |
: SMBv1 Removal batch script 1 v0.1 | |
: 09/29/2020 Josh Seyer | |
: Douglas County, OR | |
: ############################### | |
: Set SMBv1 Settings for server access *security risk* (requires reboot) | |
: Dism /online /Enable-Feature /FeatureName:"SMB1Protocol" -All | |
: Disable SMBv1 Settings (requires reboot) | |
Dism /online /Disable-Feature /FeatureName:"SMB1Protocol" | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment