Hello everyone,
I’m currently having a bit of trouble with Icinga for Windows to create a user check that just gives me just the number of users that are currently logged in. So no service users or anything, just the people that are currently connected to the remote-desktop-server via rdp.
With the Invoke-IcingaCheckUsers module I don’t get this displayed either, because there I get all users (including service users and so on) displayed and not only those who are connected via RDP. And I can’t use the user filter here because it would be impossible to enter every user manually that exists in the Active Directory.
Also my attempts to write my own module using qwinsta, query user or query session have failed so far because these commands also dont display the real number. What would be perfect, is to see just the currently via rdp connected users with status = active.
Does anyone here have an idea how I can query this or even already has a module for it? At first glance I actually thought this is simple thing to do but it is probably more difficult than expected.
Many thanks in advance and kind regards