Skip to content

Instantly share code, notes, and snippets.

@stephenlauck
Created April 26, 2017 19:16
Show Gist options
  • Save stephenlauck/e82145e59419a1e79177b4debdd24813 to your computer and use it in GitHub Desktop.
Save stephenlauck/e82145e59419a1e79177b4debdd24813 to your computer and use it in GitHub Desktop.
# Remove SMB1 Client and Server functions for Server 2012 and newer
describe windows_feature('SMB1Protocol') do
it { should_not be_installed }
end
# Disable SMB1 Server functionality
describe registry_key('SMB1','HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters') do
its('SMB1') { should eq 0 }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment