Configuration SimpleExpandedConfig { param () Import-DscResource -Module PSDesiredStateConfiguration Import-DscResource -Module xComputerManagement -ModuleVersion 4.1.0.0 Import-DscResource -Module xNetworking -ModuleVersion 5.7.0.0 # Common configuration for all nodes node $AllNodes.Where({$_.Role -in 'CLIENT'}).NodeName { LocalConfigurationManager { RebootNodeIfNeeded = $true; AllowModuleOverwrite = $true; ConfigurationMode = 'ApplyOnly'; } xFirewall 'FPS-ICMP4-ERQ-In' { Name = 'FPS-ICMP4-ERQ-In'; DisplayName = 'File and Printer Sharing (Echo Request - ICMPv4-In)'; Description = 'Echo request messages are sent as ping requests to other nodes.'; Direction = 'Inbound'; Action = 'Allow'; Enabled = 'True'; Profile = 'Any'; } xFirewall 'FPS-ICMP6-ERQ-In' { Name = 'FPS-ICMP6-ERQ-In'; DisplayName = 'File and Printer Sharing (Echo Request - ICMPv6-In)'; Description = 'Echo request messages are sent as ping requests to other nodes.'; Direction = 'Inbound'; Action = 'Allow'; Enabled = 'True'; Profile = 'Any'; } xIPAddress 'PrimaryIPAddress' { IPAddress = $node.IPAddress InterfaceAlias = $node.InterfaceAlias AddressFamily = $node.AddressFamily } xComputer 'Hostname' { Name = $node.NodeName; } } }