Quantcast
Channel: Active questions tagged windows - Super User
Viewing all articles
Browse latest Browse all 9177

Powershell Get Active logged in user in local machine

$
0
0

I am trying to get currently logged in users who has active session.

In the task manager, the list is crystal clear that there are two user sessions and one is active.

I want to query the same via Powershell. I tried few of the available commandsGet-WmiObject Win32_LoggedOnUser | Select Antecedent -Unique which lists lot more users than I can even see [domain joined computer]

I am looking for the query which can give results exactly like Task Manager.enter image description here


Viewing all articles
Browse latest Browse all 9177

Trending Articles