[powershell]
Get-View -ViewType HostSystem | Select Name, @{N="Version";E={$_.Summary.Config.Product.FullName}}
[/powershell]
Where { $_.Version -match “ESXi”}
add for only esx
A place to store my quick notes I want to access later, plus maybe help the world…?
[powershell]
Get-View -ViewType HostSystem | Select Name, @{N="Version";E={$_.Summary.Config.Product.FullName}}
[/powershell]
Where { $_.Version -match “ESXi”}
add for only esx
[powershell]
$esxhost= Get-VMHost anyhost
dir ‘vmstores:\[email protected]\name\datastorename\*\*.vmx’ |
% {New-VM -Host $esxhost -VMFilePath $_.DatastoreFullPath}
[/powershell]