"Eranga" <km***@yahoo.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Hello Angel,
Thanks for your reply. But I want to use this in a program and feed the
results in to an asp.net web application. Do you think the net view can
be used in that sense.?
Thanks in advance for any helpful comments and tips.
*** Sent via Developersdex http://www.developersdex.com ***
Unless you are running in a domain (be it NT4 or AD), there is no easy way
to know the machines that have users logged on.
If you have a domain infrastructure, you can use System.DirectoryServices to
query the machine names in the domain, when you have a list of machines you
can use System.Management and WMI to query the logon sessions running on
each box individually.
Willy.