是否有可能获得集团注从Active Directory?有可能、集团、Directory、Active

2023-09-09 21:42:19 作者:30.素衣清颜淡若尘

Active Directory组具有可通过界面上的注意事项属性(见下图)

Active Directory groups have a 'Notes' property available through the interface (see image below)

是否有可能获取在C#中这些信息?

Is it possible to retrieve this information in C#?

我似乎无法找到保持它的财产。我已经使用 System.DirectoryServices.DirectoryEntry 它们的和 System.DirectoryServices.AccountManagement.GroupPrincipal 的对象,但没有试过似乎有它。

I can't seem to find the property that holds it. I've tried using the System.DirectoryServices.DirectoryEntry and System.DirectoryServices.AccountManagement.GroupPrincipal objects but none of them seem to have it.

推荐答案

有一个名为属性信息持有这一领域内显示的信息。但它只会被添加到AD对象,如果一个值是可用的。

There is a property called info which holds the information shown within this field. But it will only be added to the AD object if a value is available.

如果你想看到这个领域内的文本的所有元素。只需打开浏览器AD(启动DSA.MSC ),然后打开一个新的搜索。修改中的查找组合框中选择到自定义搜索,点击高级键,输入文字信息= * 。现在,你会得到它具有该领域的所有元素的列表。

If you like to see all elements that have a text within this field. Simply open the AD Browser (start dsa.msc) and open a new search. Change the selection within the "Find" combobox to Custom Search, click on Advanced and enter the text info=*. Now you'll get back a list of all elements which having this field.