Skip to main content


Showing posts from July, 2018

vmware - Powershell get hardware inventory

Need a script to get serial numbers from my esxi hosts and a few other items PowerState : PoweredOn Version : 6.0.0 NumCpu : 12 Cluster : Clustername MaxEVCMode : intel-haswell vCenter : vcentername Name : esxi host name Build : buildnumber CpuCoreCountTotal : 12 Model : Hardware model number MemoryTotalGB : Total memory of esxi host CpuModel : cpu model MemoryUsageGB : memory usage at time of report SerialNumber : esxi host serial number ConnectionState : Connected Prior to running this make sure you are up to date on your vmware powercli via Install-Module -Name VMware.PowerCLI Import-Module VMware.VimAutomation.Core Set-PowerCLIConfiguration -Scope User -ParticipateInCEIP $false Set-PowerCLIConfiguration -InvalidCertificateAction ignore -confirm:$false Update-Module -Name VMware.PowerCLI $vcenter = "vcenterhostname" #Tony Unger #Requires -Version 5