【问题标题】:Confusion as to what this is exactly returning (WinNT in VB.net)对这到底返回什么感到困惑(VB.net 中的 WinNT)
【发布时间】:2011-05-17 12:43:25
【问题描述】:
'get list of all users on domain

     Dim de As New DirectoryEntry()
     de.Path = "WinNT://Domain.mydomain/JohnDoe2-1"
     For Each d As DirectoryEntry In de.Children()
        Console.WriteLine(d.Name)
        Console.ReadLine()
    Next

当我运行 WintNT://Domain.mydomain 时,它会列出域中的用户。 当我使用 /JOhnDoe2-1 运行它时,我会得到一个列表。是这些文件吗?有没有办法在其中展开搜索?

任何有关在域用户中搜索特定文件的提示都会有所帮助。 谢谢各位

【问题讨论】:

    标签: vb.net active-directory


    【解决方案1】:

    返回的内容取决于 JohnDoe2-1 是什么...是用户吗?计算机名称?别的东西?我们不知道...

    有关解决问题的提示,请查看 http://msdn.microsoft.com/en-us/library/aa772211(v=VS.85).aspxhttp://msdn.microsoft.com/en-us/library/aa746534(v=vs.85).aspx

    【讨论】:

    • 谢谢,希望这能有所帮助。John Doe 是域上的用户名。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2021-04-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-11-27
    • 2018-09-29
    • 1970-01-01
    相关资源
    最近更新 更多