I am writing a powerCLI script to automate my vmware configuration and my script as followes :
$VMHost=Get-VMHost
$esxcli = Get-Esxcli -VMHost $VMHost -V2
$ESXfw=$esxcli.network.firewall
$ESXfw.ruleset.set($false,$true,"dhcp")
Cannot find an overload for "set" and the argument count: "3".
At line:1 char:1
+ $ESXfw.ruleset.set($false, $true, "dhcp")
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodException
+ FullyQualifiedErrorId : MethodCountCouldNotFindBest
Please check and help me for the resolution.
Thanks !!!
Aurobinda