unnamed
Powershell

Get vm host and cluster Powercli

$Clusters = get-cluster $Result =@( Foreach ($Cluster in $Clusters) { $VMhosts = Get-VMHost -Location $Cluster foreach($VMhost in $VMhosts) { [pscustomobject]@{ “Host” = $VMhost.Name “Cluster Name” = $Cluster } } } ) $Result

unnamed
Powershell

Useful commands PowerCli

Hi All, I would like to share with you some useful PowerCli commands to work with VMware environments., The following commands will help you to automate your actions with Virtual Machines. Clone Virtual Machines from […]