PC Review


Reply
Thread Tools Rate Thread

C#, Getting list of logged on Terminal Service Users

 
 
=?Utf-8?B?Q2hyaXN0aWFuIEphY29i?=
Guest
Posts: n/a
 
      9th May 2005
Hello,

I am searching for a way to retrieve the list of currently logged on
terminal server users. Not only do I have to know who is currently using a
remote desktop session, but also need to prevent other users from logging in.

I found a way of getting a list of running processes and link them to the
owning users, but there must be a better way... for example, Terminal Server
brings a tool called query.exe which shows the users currently logged in. How
did they do this?

Is there a simple WMI call available for achieving this?

I am looking forward to your suggestions.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Is it possibe to edit HKCU for users not logged into Terminal Server? duderancher@gmail.com Microsoft Windows 2000 Registry 1 3rd Mar 2006 11:21 PM
Can a service running as NetworkService see logged on users? Stephen Corey Microsoft VC .NET 1 17th Mar 2005 04:21 PM
How to determine Logged On Users from a VB .NET Service =?Utf-8?B?Umlja1Bvd2VsbA==?= Microsoft Dot NET Framework 0 7th Jan 2005 08:37 PM
Services.exe spikes to 100% CPU usage when Terminal Service session logged on Britt Morris Microsoft Windows 2000 Advanced Server 0 3rd Aug 2004 02:10 AM
Users login to Win2000 terminal server and are immediately logged out Andre Belpanno Microsoft Windows 2000 Terminal Server Clients 2 27th Sep 2003 06:20 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:38 AM.