首先需要引入System.DirectoryServices.dll using System; using System.Collections.Generic; using System.DirectoryServices; using System.Linq; using System.Text; namespace ConsoleApplication1 { class Program { private static readonly string PATH = "WinNT://&q…