Figure 8.5 Enabling inbound replication for the Hyper-V Replica Broker role
To enable the firewall rule on every node in a cluster with PowerShell quickly, use the
following. Change the cluster name to that of your cluster.
$clusname = "savdalhv16clus"
$servers = Get-ClusterNode -Cluster $clusname
foreach ($server in $servers)
{
Invoke-Command -ComputerName $server.Name -ScriptBlock {Enable-Netfirewallrule -DisplayName
"Hyper-V Replica HTTP Listener (TCP-In)"}
}