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