Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #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
- }
Add Comment
Please, Sign In to add comment