Closed Jarli01 closed 2 years ago
You should be able to do:
Get-NinjaOneDevices -deviceFilter "status=PENDING"
Documentation for deviceFilter
: https://resources.ninjarmm.com/API/Ninja+RMM+Public+API+v2.0.5+Device+Filter+Syntax.pdf
OH. . . so much easier than I was doing.
Thanks!
I like device filter - wanna get all pending Windows workstations?
Get-NinjaOneDevices -deviceFilter "status=PENDING AND class=WINDOWS_WORKSTATION"
That's nice! will have to start using that, next on my list is to convert OrganizationID to Organization Name for this report
(Get-NinjaOneOrganisations -organisationId $id).name
Hey @homotechsual hope I'm not a bother yet, and I hope you don't mind.
I'm working to try and pull a list of devices in a status other than Approved and while I don't believe this is a limit on this PS Module (and I'm leaning towards it being a NRMM issue I wanted confirmation). Can you look at the below and tell me if I'm wrong here and just doing something wrong?
I have a running topic in their DOJO community as well, https://ninjarmm.zendesk.com/hc/en-us/community/posts/6908556140557-Ninja-API-Pending-Device-list