Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 252940

Re: Getting Host Hardware Information through PowerCLI

$
0
0

The following PowerCLI script retrieves the required information from all your hosts:

 

Get-VMHost |Select-Object-Property Name,Manufacturer,Model,ProcessorType,
@{Name="NumCpuPackages";Expression={$_.ExtensionData.hardware.CpuInfo.NumCpuPackages}},
@{Name="NumCpuCores";Expression={$_.ExtensionData.hardware.CpuInfo.NumCpuCores}},
CpuTotalMhz,CpuUsageMhz,MemoryTotalGB,MemoryUsageGB,Version |Export-Csv-PathVMHostInfo.csv-NoTypeInformation-UseCulture

Viewing all articles
Browse latest Browse all 252940

Trending Articles