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