ASP.NET How to get List of Groups in Active Directory

后端 未结 2 669
清酒与你
清酒与你 2020-12-05 03:01

How can I get a full list of Groups in my Active Directory?

2条回答
  •  情话喂你
    2020-12-05 03:54

    Microsoft .NET Framework provides a standard library for working with Active Directory: System.DirectoryServices namespace in the System.DirectoryServices.dll.

    Microsoft recommends using two main classes from the System.DirectoryServices namespace: DirectoryEntry and DirectorySearcher. In most cases, it is enough to use DirectorySearcher class only.

    You can find some examples in this CodeProject article.

提交回复
热议问题