如何获取一个人的计算机名
How to get the computer name of a person
是否可以获取通过 Active Directory 找到的人的计算机名称?
我目前正在通过 DirectorySearcher
对象获取此人,并且可以从那里获取用户的 SID,但我不知道接下来要查看哪里才能找到分配给的实际计算机名称那个 SID 或那个人?
或者也许有更简单的方法从 Active Directory 获取此信息?
默认 AD 中没有计算机与用户的关联 - 因此无法获取此类信息。
您可能会发现 last/currently 个用户登录了一组机器(而且我认为这在 AD 中不可用,请参阅 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)。
是否可以获取通过 Active Directory 找到的人的计算机名称?
我目前正在通过 DirectorySearcher
对象获取此人,并且可以从那里获取用户的 SID,但我不知道接下来要查看哪里才能找到分配给的实际计算机名称那个 SID 或那个人?
或者也许有更简单的方法从 Active Directory 获取此信息?
默认 AD 中没有计算机与用户的关联 - 因此无法获取此类信息。
您可能会发现 last/currently 个用户登录了一组机器(而且我认为这在 AD 中不可用,请参阅 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)。