i need to disable firewall
i see the synatax is
$esxcli.network.firewall.set(boolean defaultaction, boolean enabled)
| | Import-Csv C:\temp\esxi.csv |foreach { |
| $esxcli = Get-EsxCli -VMHost $_.name |
$esxcli.network.firewall.set( PASS, $true )
}
i tried above is wrong
current
esxcli network firewall get
Default Action: DROP
Enabled: false
Loaded: true
thanks