Click here to Skip to main content
15,888,579 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I need only the number of users logged in Windows. The state can be active / disconnected / inactive / signed out etc , doesn't matter.

Command qwinsta shows details of users currently on the system.

I know in Linux its who which displays all the users on the network.
I need a similar thing which returns the number of users.

What I have tried:

I was just able to get the name of the current active user with
C#
QueryComputerSystem("username");
Posted
Updated 5-Mar-17 0:27am

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900