Virtually everything is poshable
Correct HAL Installed ?
Following an inspiring blog post from Duncan Epping located here it made me think about how I could find the CPU vs HAL information, a 5 minute mess around in the VI Toolkit produced the following script:
Connect-viserver MYVISERVER
$myCol = @()
ForEach ($VM in (Get-VM)){
$MyDetails = “” | select-Object Name, HAL, NumvCPU
$MYDetails.Name = $VM.Name
$Hal = Get-WmiObject -ComputerName
$VM.Name -Query “SELECT * FROM Win32_PnPEntity where ClassGuid = ‘{4D36E966-E325-11CE-BFC1-08002BE10318}’” | Select Name
$MYDetails.HAL = $Hal.Name
$MYDetails.NumvCPU = $VM.NumCPU
$myCol += $MYDetails}
$myCol
This will give you a list of your VM’s the HAL installed and the number of vCPU’s
| Print article | This entry was posted by Virtu-Al on November 14, 2008 at 13:05, and is filed under ESX, powershell, vmware. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |







(3)
(13)
(0)
about 1 year ago
Nice Script Allan!
about 1 year ago
Note that this only works if the VM name is perfectly resolvable via DNS/WINS to the destination computername.
about 1 year ago
Thanks Hal (ha ha Hal commenting on a script about Hals), you obviously need access to the machine too