VMware Cloud Community
NoTr3x
Contributor
Contributor

Modify Firewall rules

Hi,

i want to edit my firewall rules with powercli. This code snippet only enable the rule. My goal is to add more ips to my existing rule.

Maybe some has got an example, it could help.

<Code>

Get-VMHost -Name "vhost" | Get-VMHostFirewallException | Where-Object{$_.Name -eq "NFS Client"} | Set-VMHostFirewallException -Enabled $true

</code>

Tags (2)
Reply
0 Kudos
1 Reply
LucD
Leadership
Leadership

Have a look at Re: PowerCLI Script for Firewall allowed IP's


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos