Quantcast
Channel: VMware Communities : Discussion List - Automation Tools
Viewing all articles
Browse latest Browse all 9071

Getting and Setting vmKernel IP

$
0
0

Currently I have this:

 

$vmkernel0 = Get-VMHostNetworkAdapter | where { $_.PortGroupName -eq "xxx" } | Select Name

Set-VMHostNetworkAdapter -VirtualNIC $vmkernel0 -IP $xxx -SubnetMask $xxx

 

im receiving this error:

Set-VMHostNetworkAdapter : Cannot bind parameter 'VirtualNic'. Cannot convert the "@{Name=vmk1}"...

 

Im trying to use the output of Select Name, which in this case is vmk1 to input into the next command.

 

Doesnt work. Any assistance would be great

 

Thank you


Viewing all articles
Browse latest Browse all 9071

Trending Articles