Packer.Images/inspec/Windows10IoTEnterprise/profile/controls/Win10/Disabled IPv6.rb

16 lines
339 B
Ruby
Raw Normal View History

script = <<-EOH
$nic = get-netadapter
Get-NetAdapterBinding InterfaceAlias $nic.name ComponentID ms_tcpip6
EOH
control "ipv6" do
title 'Disabled network protocol IPv6'
desc '
This test assures that IPv6 is disabled
'
describe powershell(script) do
its('stdout') { should match 'False' }
end
end