VMware Cloud Community
GarTomlon
Enthusiast
Enthusiast

VMs of dedicated assigned Horizon View pools.

Looking for assistance with a powercli script that will return all Vms of horizon view pools with dedicated assignment.  Any help will be appreciated.

0 Kudos
1 Reply
fabio1975
Commander
Commander

Ciao

Try this script

#####

$connectionServer = "<FQDN Connection Server>"
$poolname = "<PoolName>"
$credential = Get-Credential
Connect-HvServer -server $connectionServer -User <domain\username> -Password <password>
$pools=get-hvpool

$pooldata=@()

foreach ($pool in $pools){
$pooldata+=new-object PSObject -property @{"name" = $pool.base.name;}
}
$pooldata
get-hvmachinesummary -PoolName $poolname | Ft -AutoSize
 
#####
 
For install of Horizon Powercli (Connect-HvServer and get-hvmachinesummary)  check this link 
 
 
 
 
 
Fabio

Visit vmvirtual.blog
If you're satisfied give me a kudos

0 Kudos