我有以下方法用於在本地計算機(先完成)或當前林中搜索用戶組。 public string FindUserGroup(string group)
{
//Search local computer
using (DirectorySearcher searcher = new DirectorySearcher(new DirectoryEntry()))
我試圖綁定到Active Directory服務器在C#中,但在現場我似乎已經在測試環境中不能重現的問題。 我發現了一個異常 System.Runtime.InteropServices.COMException (0x8007203A): The server is not operational.
at System.DirectoryServices.DirectoryEntry.