Skip to content

Instantly share code, notes, and snippets.

@stephenlauck
Created April 26, 2017 19:15
Show Gist options
  • Save stephenlauck/8b1406d37dffc4317becc8860c09205e to your computer and use it in GitHub Desktop.
Save stephenlauck/8b1406d37dffc4317becc8860c09205e to your computer and use it in GitHub Desktop.
# 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