PS:ESXi name +Hardware details + Processor Details+ Memory

This Script give Hardware info on which VM is running.

Import-Csv -Path <File Path>| foreach {
get-vm $_.VirtualServer | Get-VMHost |Sort Name |Get-View |`
Select Name, `
@{N=“Type“;E={$_.Hardware.SystemInfo.Vendor+ “ “ + $_.Hardware.SystemInfo.Model}},`
@{N=“CPU“;E={“PROC:“ + $_.Hardware.CpuInfo.NumCpuPackages + “ CORES:“ + $_.Hardware.CpuInfo.NumCpuCores + “ MHZ: “ + [math]::round($_.Hardware.CpuInfo.Hz / 1000000, 0)}},`
@{N=“MEM“;E={“” + [math]::round($_.Hardware.MemorySize / 1GB, 0) + “ GB“}} } | export-csv <File Path>

 

Output Example

VirtualServer ESXi Hardware Processor Details Memory
SRV-P-VM01 esx01 HP ProLiant BL460c G7 PROC:2 CORES:12 MHZ: 3067 192 GB
SRV-P-VM02 esx02 HP ProLiant BL460c G6 PROC:2 CORES:8 MHZ: 2800 192 GB
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s