Examples/Resources/xFirewall/4-xFirewall_EnableBuiltInFirewallRule.ps1
<#
.EXAMPLE DSC configuration that enables the built-in Firewall Rule 'World Wide Web Services (HTTP Traffic-In)' #> configuration Example { param ( [string[]] $NodeName = 'localhost' ) Import-DSCResource -ModuleName xNetworking Node $NodeName { xFirewall Firewall { Name = 'IIS-WebServerRole-HTTP-In-TCP' Ensure = 'Present' Enabled = 'True' } } } |