Change vNIC from PowerCLI (00001)

Purpose

Sometimes it happens that VM's vNIC is not giving you an option to upgrade\change from E1000 to VMXNET3. Generally this require a downtime for proper application but still it will change the vNIC type and need restart thereafter.

Resolution

$VC = read-host "Enter VC FQDN\IP"
$VM = read-host "Enter VM Name"
Connect-VIServer  $VC
get-vm $VM  | Get-NetworkAdapter | set-networkadapter -type vmxnet3 -confirm:$false




0 Comments:

Post a comment