- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm running the following command:
Get-VMHost | Get-VirtualPortGroup | Select VMHostId,Name,VirtualSwitch,VirtualSwitchName,VLanId | Export-Csv "PathHere"
Which returns all of the information I want, except it puts the VMHostId instead of the actual host's name:
| VMHostId | Name | VirtualSwitch | VirtualSwitchName | VLanId |
| HostSystem-host-97975 | Service Console | vSwitch0 | vSwitch0 | 0 |
I don't see Parent or any other similar options under the Select from within the Get-VirtualPortGroup. What is the proper way to get the Host's actual name instead of the VMHostId?
Blog: http://blog.eeg3.net