2017-07-06 05:25:40 +02:00
|
|
|
control "enable-rdp" do
|
|
|
|
title "Enable RDP"
|
|
|
|
desc "Enables RDP by modifying Registry and adding a Firewall rule. Configuration script available at /scripts/configs/enable-rdp.bat"
|
|
|
|
|
|
|
|
describe command('netsh advfirewall firewall show rule name="Open Port 3389"') do
|
|
|
|
its('stdout') { should match ("Enabled: Yes") }
|
|
|
|
end
|
|
|
|
|
2017-07-19 14:52:41 +02:00
|
|
|
describe registry_key('HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server') do
|
|
|
|
its('fDenyTSConnections') { should eq 0 }
|
|
|
|
end
|
2017-07-06 05:25:40 +02:00
|
|
|
|
2017-07-19 14:52:41 +02:00
|
|
|
describe port('3389') do
|
|
|
|
it { should be_listening }
|
2017-07-06 05:25:40 +02:00
|
|
|
end
|
|
|
|
end
|