Crandel
Crandel

Reputation: 997

Active directory - Get computer IP by user SID

How can I retrieve with C# a computer IP were a user logged using active directory?

Upvotes: 0

Views: 1467

Answers (1)

Andrew Cooper
Andrew Cooper

Reputation: 32586

You would have to query the Security Event Log on any domain controllers that may have authenticated the user. The logon event will contain the name (and I think the IP) of the workstation used to logon.

Upvotes: 1

Related Questions