DSCResources/xNetworking/2.12.0.0/Examples/Sample_xFirewall_AddFirewallRuleToNewGroup.ps1
# DSC configuration for Firewall configuration Sample_xFirewall_AddFirewallRuleToNewGroup { param ( [string[]]$NodeName = 'localhost' ) Import-DSCResource -ModuleName xNetworking Node $NodeName { xFirewall Firewall { Name = "MyAppFirewallRule" Program = "c:\windows\system32\MyApp.exe" } } } |