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