2011-05-17 50 views
0
'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運行它時,我得到了一些東西。這些文件是否有擴大搜索範圍的方法?混淆了什麼,這是完全返回(Win.net在VB.net)

向搜索域用戶提供特定文件的任何提示都會有所幫助。 謝謝親友

回答