Skip to content

Instantly share code, notes, and snippets.

@peterhynes
Last active April 11, 2018 13:08
Show Gist options
  • Select an option

  • Save peterhynes/bcb0cd3a5cb9ad64ff612bb8c219283e to your computer and use it in GitHub Desktop.

Select an option

Save peterhynes/bcb0cd3a5cb9ad64ff612bb8c219283e to your computer and use it in GitHub Desktop.
Get vmware cluster/host bios version
#Script to get bios version of esxi host VMs by Peter Hynes
#Version 1.0
#Created on the 11/04/2018
#Connect to the vCenter or vcenters and Run within PowerCLI
#You will need to create a txt file called clusters.txt and place it in the same folder as this script. Put the list of clusters you want to pull info from in to this txt file.
$clusters = get-content .\clusters.txt
ForEach($cluster in $clusters){
get-cluster $cluster | Get-VMHost | Get-VMHostHardware | select VMHost, @{N="Cluster";E={$cluster}}, Manufacturer, Model, BiosVersion | Export-Csv -Append -Path .\ClusterBios.csv -NoTypeInformation
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment