Paul Carroll

  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About Paul Carroll

  • Rank
    Community Member

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Paul Carroll

    Add device to Collector with least devices in rest api

    Thanks Joe. Really appreciated I have added the below which filters by selected collectors and selects the one with the least number of machines Where-Object {($ -eq "CollectorId") -or ($ -eq "CollectorId")} | Sort-Object numberOfHosts -Descending:$false | Select-Object -First 1| Out-Gridview
  2. I hope someone here can help, Using powershell and the rest API I would like to do a lookup of selected collectors find which has the least amount of devices on it then add the a new device . I have the script for adding the device and that works great just need the collector lookup, has anyone done something similar. Thank you in advanced for all help provided Paul