Find all ver and build hosts

[powershell]
Get-View -ViewType HostSystem | Select Name, @{N="Version";E={$_.Summary.Config.Product.FullName}}
[/powershell]

Where { $_.Version -match "ESXi"}

add for only esx

Reg all vm's in datastore

[powershell]
$esxhost= Get-VMHost anyhost
dir 'vmstores:\[email protected]\name\datastorename\*\*.vmx' |
% {New-VM -Host $esxhost -VMFilePath $_.DatastoreFullPath}
[/powershell]

WordPress Themes