Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 229097

Re: PowerCLI script to validate all the hosts in vCenter Intel VT enabled or no

$
0
0

Sure, by using the info from KB1011712 you can even use a meaningful text instead of the number.

Something like this

 

$HVinfo="VT/AMD-V indicates that support is not available for this hardware.",
 
"VT/AMD-V indicates that VT or AMD-V might be available but it is not supported for this hardware.",
 
"VT/AMD-V indicates that VT or AMD-V is available but is currently not enabled in the BIOS.",
 
"VT/AMD-V indicates that VT or AMD-V is enabled in the BIOS and can be used."

Get-VMHost|SelectName,
 
@{N="HVSupport";E={
   
$esxcli=Get-EsxCli-VMHost$_
   
$index=$esxcli.hardware.cpu.global.get() |Select-ExpandPropertyHVSupport
   
$HVinfo[$index]
  }}
|
Export-CsvC:\HV-report.csv-NoTypeInformation-UseCulture

 

Note that this will only work for ESXi 5.* hosts this way.

With ESXi 4.* hosts you will have to do a Connect-VIServer to each one before doing the Get-EsxCli.


Viewing all articles
Browse latest Browse all 229097

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>