- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Exporting Desktop Pool Information
Hi All,
I'm trying to find a way of getting the Total Number of Machines inside a Desktop Pool (MachineCount). But unable to find such parameter
Connect-HVServer -Server $item -User $user -Password $pswd -ErrorAction Stop
$vms = Get-HVPool #Get Machine Summary
$results = @() #Array
#Loop over each items
foreach($vm in $vms) {
#List out properties
$properties = @{
HoizonServer = $item
DesktopID = $vm.Base.Name
DesktopName = $vm.Base.DisplayName
TotalMachineCount = $v
SpareMachines = $vm.AutomatedDesktopData.vmnamingsettings.patternnamingsettings.numberOfSpareMachines
Capacity = $vm.automateddesktopdata.vmnamingsettings.patternnamingsettings.maxnumberofmachines
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Couldn't you do $vms.count?
Senior Staff Architect, EUC Technical Marketing
chalstead@vmware.com
Twitter: @chrisdhalstead
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I've found it well hidden in the API Doc.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
awesome - glad you found it
Senior Staff Architect, EUC Technical Marketing
chalstead@vmware.com
Twitter: @chrisdhalstead