Use "Notes" field from AD groups in Powershell script

Tagged: 

This topic contains 2 replies, has 3 voices, and was last updated by Profile photo of David Schmidtberger David Schmidtberger 8 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #34296
    Profile photo of Dennis
    Dennis
    Participant

    Is it possible to use the value in the notes field in the general tab from AD groups?
    I need to use that value in a parameter in a Powershell script.
    I thought something in the lines of:

    $notes =  get-adgroup  -SearchBase $OU -Properties Info,Description,Notes;
    #34310
    Profile photo of Don Jones
    Don Jones
    Keymaster

    You should be able to query any of the native attributes, if that's what you're asking.

    #34314

    the "Notes" field you see in ad users and computers is actually the info field

    so, you can do the following
    get-adgroup -SearchBase $OU -properties info | select -expandproperty info

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.