Guest User

Untitled

a guest
Apr 19th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. #Script to get bios version of esxi host VMs by Peter Hynes
  2. #Version 1.0
  3. #Created on the 11/04/2018
  4. #Connect to the vCenter or vcenters and Run within PowerCLI
  5. #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.
  6.  
  7. $clusters = get-content .\clusters.txt
  8.  
  9.  
  10. ForEach($cluster in $clusters){
  11. get-cluster $cluster | Get-VMHost | Get-VMHostHardware | select VMHost, @{N="Cluster";E={$cluster}}, Manufacturer, Model, BiosVersion | Export-Csv -Append -Path .\ClusterBios.csv -NoTypeInformation
  12. }
Add Comment
Please, Sign In to add comment