Get IP by Active Directory Account

  • Thread starter Thread starter andy
  • Start date Start date
A

andy

Hello, I have server-part of my program, and it very need to get ip of
user that logged into the domain. All that program knew about user his
Active Directory account.What I have to do? Thank you, and excuse me my
english :)
 
Andy,

Users don't have IP addresses, machines do. Your best bet would be to
use the classes in the System.Management namespace to query for all
instances of the Win32_NetworkAdapterConfiguration class, which will give
you the IP addresses of all the network adapters on the machine the query
takes place on.

Hope this helps.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top