Quantcast
Channel: VMware Communities : All Content - All Communities
Viewing all articles
Browse latest Browse all 179681

Error in "$esxcli.network.firewall.ruleset.set(($false,$true,"dhcp")" command

$
0
0

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

 

 


Viewing all articles
Browse latest Browse all 179681

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>