You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been trying to find a way to use something other than 'query user' or 'quser' to get this info. Apparently it queries the Terminal Services API (? Can't find the reference I thought I saw yesterday... ☹️ ) to get this info.
How else could we find user idle time??
The text was updated successfully, but these errors were encountered:
I'm wondering if we could cherry pick some of the functionality from PSReflect-Functions to accomplish this. Looks like it uses wtsapi32 to query user sessions.
When a session is disconnected ("DISC") the SESSIONNAME field is empty and is not properly parsed:
This fails to properly tokenize the output and parse the fields:
I've been trying to find a way to use something other than 'query user' or 'quser' to get this info. Apparently it queries the Terminal Services API (? Can't find the reference I thought I saw yesterday...☹️ ) to get this info.
How else could we find user idle time??
The text was updated successfully, but these errors were encountered: