Active Directory groups have a 'Notes' property available through the interface (see image below)
Is it possible to retrieve this information in C#?
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.
I'm not sure but, have you ever checked DirectoryEntry.Properties
property?
Gets the Active Directory Domain Services properties for this DirectoryEntry object.
Check out these articles:
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.
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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.