DSCResources/FirewallProfiles/FirewallProfiles.schema.psm1
configuration FirewallProfiles { Param ( [Parameter(Mandatory)] [hashtable[]]$Profile ) Import-DscResource -ModuleName PSDesiredStateConfiguration Import-DscResource -ModuleName xPSDesiredStateConfiguration Import-DscResource -ModuleName NetworkingDsc foreach ($item in $Profile) { $executionName = "FirewallProfile_$($item.Name)" (Get-DscSplattedResource -ResourceName FirewallProfile -ExecutionName $executionName -Properties $item -NoInvoke).Invoke($item) } } |