Examples/Resources/xFirewallProfile/1-ConfigurePrivateFirewallProfile.ps1
<#
.EXAMPLE Configure the Private Firewall Profile #> Configuration Example { param ( [Parameter()] [System.String[]] $NodeName = 'localhost' ) Import-DscResource -Module xNetworking Node $NodeName { xFirewallProfile FirewallProfilePrivate { Name = 'Private' Enabled = 'True' DefaultInboundAction = 'Block' DefaultOutboundAction = 'Allow' AllowInboundRules = 'True' AllowLocalFirewallRules = 'False' AllowLocalIPsecRules = 'False' NotifyOnListen = 'True' LogFileName = '%systemroot%\system32\LogFiles\Firewall\pfirewall.log' LogMaxSizeKilobytes = 16384 LogAllowed = 'False' LogBlocked = 'True' LogIgnored = 'NotConfigured' } } } |