veeam_firewall_configuration_for_hyper-v
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| veeam_firewall_configuration_for_hyper-v [2026/02/18 21:05] – created oso | veeam_firewall_configuration_for_hyper-v [2026/03/20 14:47] (current) – [2. PowerShell Script to Open Ports] oso | ||
|---|---|---|---|
| Line 21: | Line 21: | ||
| <code powershell> | <code powershell> | ||
| $VeeamPorts = @( | $VeeamPorts = @( | ||
| - | @{Name=" | + | |
| - | @{Name=" | + | @{Name=" |
| - | @{Name=" | + | @{Name=" |
| - | @{Name=" | + | @{Name=" |
| - | @{Name=" | + | @{Name=" |
| ) | ) | ||
| - | |||
| - | # Apply rules | ||
| foreach ($Rule in $VeeamPorts) { | foreach ($Rule in $VeeamPorts) { | ||
| - | New-NetFirewallRule -DisplayName $Rule.Name | + | |
| - | -Action Allow -Protocol $Rule.Protocol | + | $params = @{ |
| - | -LocalPort $Rule.Port | + | |
| - | -Group "Veeam Networking" | + | |
| + | Action | ||
| + | | ||
| + | LocalPort | ||
| + | | ||
| + | Group = "Veeam Networking" | ||
| + | } | ||
| + | |||
| + | New-NetFirewallRule @params | ||
| } | } | ||
| </ | </ | ||
veeam_firewall_configuration_for_hyper-v.1771448717.txt.gz · Last modified: 2026/02/18 21:05 by oso
