Use "Notes" field from AD groups in Powershell script

Welcome Forums General PowerShell Q&A Use "Notes" field from AD groups in Powershell script

This topic contains 2 replies, has 3 voices, and was last updated by

3 years, 3 months ago.

  • Author
  • #34296

    Topics: 1
    Replies: 0
    Points: 0
    Rank: Member

    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

    Topics: 13
    Replies: 4872
    Points: 1,811
    Helping HandTeam Member
    Rank: Community Hero

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

  • #34314

    Topics: 23
    Replies: 139
    Points: 260
    Helping Hand
    Rank: Contributor

    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

The topic ‘Use "Notes" field from AD groups in Powershell script’ is closed to new replies.

denizli escort samsun escort muğla escort ataşehir escort kuşadası escort