Hi guys.....quser may help to identify the status of users....
This code has come from here:
http://www.experts-exchang
Regards,
Rob.
Main Topics
Browse All TopicsI have a code that logs into a file all the active users on the machine but I need it to only log the people who leave their session but don't actually log off. In other words I need to log the people who "X out" rather than actually logging out.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Hi guys.....quser may help to identify the status of users....
This code has come from here:
http://www.experts-exchang
Regards,
Rob.
Hey Rob,
Presumably that will only play if these guys are in a Citrix environment (?)
I seem to remember from the other thread that they're in good old Win2K terminal services.
I've been trying to hunt down the attribute with little luck so far.
Is there anything we could do with Win32_PerfFormattedData_Lo
Or Win32_TerminalService_Disc
Presumably the flag these look at to count up the session numbers can be found somewhere?
Hi, I'm not sure about the WMI classes yet, but last time I tried to look for them, and their linkages, I got confused! :-)
QUser.exe can be used against a standard Terminal Server, so you may as well try it....I think it would be easier to work with.....I'll have another look through the WMI classes.
Regards,
Rob.
Business Accounts
Answer for Membership
by: davewlPosted on 2009-01-26 at 10:53:17ID: 23469546
I'm still looking into this over in this thread:
e.com/OS/ M icrosoft_O perating_S ystems/Q_2 4079214.ht ml
http://www.experts-exchang
Keep an eye there too.