471,330 Members | 1,406 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,330 software developers and data experts.

User name

GTi
Is it possible get the logged on username for an specified IP
address/hostname in a local domain ?

Feb 1 '06 #1
3 1029
You want who is logged on at a certain machine? It may be possible
using the Active Directory objects (System.DirectoryServices) or you'll
have to create your own application for each machine.

Feb 1 '06 #2
GTi
Chris,
Yes - based on the machine name/address I can look in a Directory and
get the logon name.
Will try to see whats inside System.DirectoryServices .
Tx for the tip.

Feb 1 '06 #3

"GTi" <tu****@gmail.com> wrote in message
news:11**********************@g43g2000cwa.googlegr oups.com...
| Chris,
| Yes - based on the machine name/address I can look in a Directory and
| get the logon name.
| Will try to see whats inside System.DirectoryServices .
Nothing, the DS aren't meant to keep track of logged-on users, the AD is a
(static) store of directory objects and properties like users, machines etc.
It doesn't keep track of dynamic properties like a logon status, it doesn't
even handle the logon, so it can't keep track of it.
One option you have to use System.Management and WMI to query for the logon
state of a user on a specific machine.

Willy.

Feb 1 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Tom Loach | last post: by
2 posts views Thread by Technical Group | last post: by
6 posts views Thread by Andrew Chalk | last post: by
3 posts views Thread by Terry Olsen | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.