Reply to Message

View discussion in a popup

Replying to:
LucD
Leadership
Leadership

Try something like this.
Bios information depends on the HW vendor and the HW type, it is not avaialble for all HW.

Get-VMHost |

Select Name, @{ N = 'Cluster'; E = { (Get-CLuster -VMHost $_).Name } },

ProcessorType,

  @{N = 'CoresPerCPU'; E = { $_.ExtensionData.Hardware.CpuInfo.NumCpuCores } },

  MemoryTotalGB,

  @{N = 'PowerPolicy'; E = { $_.ExtensionData.Config.PowerSystemInfo.CurrentPolicy.ShortName } },

  Version,

  @{N = 'BootTime'; E = { $_.ExtensionData.Summary.Runtime.BootTime } },

  @{N = 'DNSServers'; E = { $_.ExtensionData.Config.Network.DnsConfig.Address -join '|' } },

  @{N = 'NTPServers'; E = { $_.ExtensionData.Config.DateTimeInfo.NtpConfig.Server -join '|' } },

  @{ N = 'BIOSVersion'; E = { $_.ExtensionData.Hardware.BiosInfo.BiosVersion } },

  @{ N = 'BIOSDate'; E = { $_.ExtensionData.Hardware.BiosInfo.ReleaseDate } }


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference