How do i from powercli get a vm from a port ID?
You mean something like this?
Get-VDSwitch | Get-VDPort -Key $portId |
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
View solution in original post
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?
Ohhh... you are right. All good.. thanks.