PowerShell: Setting Windows Firewall Rules
# Set variables for HTTP$protocolName="HTTP"$protocol="TCP"$portNumbers='80','443'$direction="Inbound"$scopes='Domain', 'Private'# Add Firewall RuleNew-NetFirewallRule -DisplayName "$protocolName-$direction" -Profile @($scopes) -Direction $direction…
0 Comments