Last active
April 11, 2018 13:08
-
-
Save peterhynes/bcb0cd3a5cb9ad64ff612bb8c219283e to your computer and use it in GitHub Desktop.
Get vmware cluster/host bios version
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #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