问题描述
您好,
我想知道如何使用LDAP获取远程计算机的用户.
我正在使用以下代码获取域计算机
Dim de As DirectoryEntry = New DirectoryEntry("LDAP://"和域名)
Dim ds As DirectorySearcher = New DirectorySearcher(de)
ds.PageSize = 2000
子目录. br> ds.Filter =(objectCategory = Computer)"
但我想获得特定计算机的用户.
问候,
Ani
hello,
I would like to know,how to get the users of remote computer using LDAP.
i am getting domain computers using following code
Dim de As DirectoryEntry = New DirectoryEntry("LDAP://" & DomainName)
Dim ds As DirectorySearcher = New DirectorySearcher(de)
ds.PageSize = 2000
ds.SearchScope = SearchScope.Subtree
ds.Filter = "(objectCategory=Computer)"
but i would like to get users of particular computer.
Regards,
Ani
推荐答案
感谢您的帖子!我建议您在 Microsoft TechNet 之一中发布您的问题 > > Windows Server > 目录服务 位于:http://social.technet.microsoft.com/Forums/en-US/winserverDS/threads .
Thank you for your post! I would suggest posting your question in one of the Microsoft TechNet > Forums Home > Windows Server > Directory Services located here: http://social.technet.microsoft.com/Forums/en-US/winserverDS/threads.
祝您有美好的一天!
这篇关于如何获得远程机器的用户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!