How do i from powercli get a vm from a port ID?
You mean something like this?
Get-VDSwitch | Get-VDPort -Key $portId |
Select Switch,Portgroup,@{N='VM';E={$_.ConnectedEntity.Parent.Name}}
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
You mean something like this?
Get-VDSwitch | Get-VDPort -Key $portId |
Select Switch,Portgroup,@{N='VM';E={$_.ConnectedEntity.Parent.Name}}
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Not exactly. It does not return the name om the VM, witch I am interested in.
It does for me.
Are you sure you are not looking at a port Id that has no VM connected?
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Ohhh... you are right. All good.. thanks.