Created
April 26, 2017 19:15
-
-
Save stephenlauck/8b1406d37dffc4317becc8860c09205e to your computer and use it in GitHub Desktop.
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
# Remove SMB1 Client and Server functions for Server 2012 and newer | |
windows_feature "SMB1Protocol" do | |
action :remove | |
install_method :windows_feature_dism | |
end | |
# Disable SMB1 server | |
registry_key 'HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters' do | |
values [{ | |
name: 'SMB1', | |
type: :dword, | |
data: 0, | |
}] | |
action :create | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment