【发布时间】: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 运行它时,我会得到一个列表。是这些文件吗?有没有办法在其中展开搜索?
任何有关在域用户中搜索特定文件的提示都会有所帮助。 谢谢各位
【问题讨论】: