Hi there!
I'm renaming the installer created portgroup "Management Network" using this:
Get-VMhost -Name $InstallIP | Get-VirtualPortGroup -Name 'Management Network' | Set-VirtualPortGroup -Name $managementpgname
PowerCLI shows me the deprecation warning "WARNUNG: The 'VMHostId' property of VirtualPortGroup type is deprecated. Access the host id through the VirtualSwitch property instead (e.g. 'VirtualSwitch.VMHostId')."
Could somebody please advise me how to replace the above code?