如何获得远程机器的用户 [英] How to get the Users of Remote machine

查看:91
本文介绍了如何获得远程机器的用户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我想知道如何使用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.


这篇关于如何获得远程机器的用户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆