Created
April 26, 2017 19:16
-
-
Save stephenlauck/e82145e59419a1e79177b4debdd24813 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 | |
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