Skip to content

Instantly share code, notes, and snippets.

@seyerj
Created October 2, 2020 18:01
Show Gist options
  • Save seyerj/30dfab5b147e6120f26f8fad7b9972cd to your computer and use it in GitHub Desktop.
Save seyerj/30dfab5b147e6120f26f8fad7b9972cd to your computer and use it in GitHub Desktop.
Disabled SMBv1 because it is a security risk.
@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