$ 0 0 You can get the vCenter like this Get-VM|SelectName,@{N="vCenter";E={$_.Uid.Split(":")[0].Split("@")[1]}}