Reputation: 1916
Is it possible to get the computer name for a person that is found through Active Directory?
I am currently getting the person via DirectorySearcher
object, and from there can get the user's SID, but i don't know where to look next in order to find the actual computer name that is assigned to that SID or person?
Or maybe there is an easier way to get this information from Active Directory?
Upvotes: 0
Views: 158
Reputation: 100610
There is no association of computers to users in default AD - so there is no way to get such information.
You may find last/currently logged on set of machines for a user (also I don't think this is available in AD, see How to find what user last logged onto a given computer through Active Directory in C#? for some starting points) or maybe you add custom information that gives that association in AD (Retrieving custom Active Directory properties of users).
Upvotes: 1