freydaddy's Posts

Answered on GitHub. Take a look and see if it works for you. New-HVPool & Nics · Issue #376 · vmware/PowerCLI-Example-Scripts · GitHub
Another example, not tested as I don't have access to an environment with more than 1000 users at the moment, but this should be close. Note that we are using QueryService_Create() method to init... See more...
Another example, not tested as I don't have access to an environment with more than 1000 users at the moment, but this should be close. Note that we are using QueryService_Create() method to initiate the query, instead of QueryService_Query(). It's also important to use QueryService_Delete() to free up server side resources, once you're finished. function Get-AllHvUsers ($services) {    $results = @()    $queryService = new-object VMware.Hv.QueryServiceService    $queryDefinition = New-Object VMware.Hv.QueryDefinition    $queryDefinition.QueryEntityType = "ADUserOrGroupSummaryView"    $curResults = $queryService.QueryService_Create($services, $queryDefinition)    $results += $curResults.Results    if($curResults.RemainingCount -gt 0) {    do {    $queryResponse = $queryService.QueryService_GetNext($services,$curResults.Id)    $results += $queryResponse.Results    $remaining = $queryResponse.RemainingCount   } while { $remaining -gt 0 }   }    $queryService.QueryService_Delete($services, $curResults.Id)    return $results }
Instead of offset, use GetNext()... Example in the docs here: https://vdc-download.vmware.com/vmwb-repository/dcr-public/d2c10467-1d32-485a-bc12-cd1a9af9e991/f2b348db-d978-4c4e-90ff-… $qu... See more...
Instead of offset, use GetNext()... Example in the docs here: https://vdc-download.vmware.com/vmwb-repository/dcr-public/d2c10467-1d32-485a-bc12-cd1a9af9e991/f2b348db-d978-4c4e-90ff-… $queryService = New-Object VMware.Hv.QueryServiceService $defn = New-Object VMware.Hv.QueryDefinition $defn.queryEntityType = 'FarmSummaryView' $queryResults = $queryService.QueryService_Create($hvServices, $defn) # Handle results try {   while ($queryResults.results -ne $null) {   foreach ($result in $queryResults.Results) {   [VMware.Hvi.FarmSummaryView]$farmSummaryView = $result   # Do work.   }   # Fetch next page   if ($queryResults.id -eq $null) {   break;   }   $queryResults = $queryService.QueryService_GetNext($hvServices, $queryResults.id)   } } finally {   if ($queryResults.id -ne $null) {   $queryService.QueryService_Delete($hvServices, $queryResults.id)   } }
UEM Configuration for Notepad++ DirectFlex is enabled.