Hello everyone,
I cant find on website the command to make down and up a vmnic by PowerCli. I know how to start but not the last parameter. for example i want make down vmnic1.
$esxcli.network.nic.down but after which parameter i need to use ?
Methods :
Hastable CreateArgs()
boolean Invoke(Hastable args)
string Help()
Thank you for help.
Moderator: Thread moved to the PowerCLI area.
If you use the V2 switch, you have to use the Invoke() method with the arguments in a hash table.
$esxcli.network.nic.down.Invoke(@{nicname='vmnic0'})
See PowerCLI 6.3 R1: Get-ESXCLI Why the V2? for more details.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference