PTF UserLoggedin
With Custom Sensor PTF UserLoggedin you can check if a specified user is loggedin or not loggedin on a computer.
Basically this sensor gets the number of users that are loggedin on a computer directly or via a RDP session.
You can optionally provide a comma seperated list of users to check if a specific user is loggedin or not loggedin.
-c=computer -u=username -p=password|passhash [-f=filter][-fx] [-fi]
-c=computer The ip-address or hostname of the computer to monitor.
-u=username The name of the user account that has access to the computer via WMI service.
-p=password The password or passhash of the user account that has access to the computer via WMI service.
-f=filter Optional filter to not or only count the users specified (comma seperated list).
-fx Optional switch, users in the filter are not counted (default).
-fi Optional switch, only users in the filter are counted.
To check if user Mike is loggedin on computer 192.168.1.1 :
UserLoggedin -c=192.168.1.1 -u=domain\user -p=password -f=mike -fi
The sensor will now return 1 if Mike is loggedin and 0 if anyone else or nobody is loggedin.
As user credentials cannot be used for local connections, to run the sensor against the local machine (probe), simply do not supply the username and password.
UserLoggedin -c=192.168.1.1 -f=mike -fi
The Custom Sensor can be downloaded from this page.
Add comment