Created
January 24, 2022 09:19
-
-
Save isjwuk/bae0f9dace4cbb88ba64ae4c7a6a9d2b to your computer and use it in GitHub Desktop.
Get the Vendor, Model, and Serial Number of ESXi hosts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Get-VMHost | Select-Object Name, ` | |
@{Name="Vendor";E={$_.ExtensionData.Hardware.SystemInfo.Vendor}}, ` | |
@{Name="Model";E={$_.ExtensionData.Hardware.SystemInfo.Model}}, ` | |
@{Name="SerialNumber";E={$_.ExtensionData.Hardware.SystemInfo.SerialNumber}} ` | |
| Sort-Object -Property Name |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment