Skip to content

Instantly share code, notes, and snippets.

@BenNeise
Created May 9, 2014 08:01
Show Gist options
  • Save BenNeise/7340c74284e369538633 to your computer and use it in GitHub Desktop.
Save BenNeise/7340c74284e369538633 to your computer and use it in GitHub Desktop.
Get VDI Capacity Information from the Horizon View ADAM Database
Connect-QADService -Service "YourConnectionServer"
$ObjVDICapacityData = Get-QADObject -IncludeAllProperties -SizeLimit 0 -SearchRoot "OU=Server Groups,DC=vdi,DC=vmware,DC=int" -Type "pae-ServerPool" | Select-Object Name,@{Name="DisplayName";Expression={$_."pae-DisplayName"}},@{Name="MinProvisioned";Expression={$_."pae-SVIRollingRefitMinReadyVM"}},@{Name="Spare";Expression={$_."pae-VmHeadroomCount"}},@{Name="MaxDesktops";Expression={$_."pae-VmMaximumCount"}},@{Name="MinDesktops";Expression={$_."pae-VmMinimumCount"}}
Disconnect-QADService
$ObjVDICapacityData | Format-Table -Auto
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment