Я успешно использовал код AccountManagement для извлечения базовой информации AD, но только возвращал очень ограниченный набор информации о возвращенном объекте. Как получить расширенную информацию из AD с помощью функции AccountManagement. В частности, название должности или название, которое, как представляется, вызывается в моем экземпляре AD.
Я знаю, как это сделать, используя старые DirectoryServices, но я хотел бы знать, как это сделать, используя новое пространство имен.