Simple list of AD Group Names that match a keyword

Welcome Forums General PowerShell Q&A Simple list of AD Group Names that match a keyword

Viewing 3 reply threads
  • Author
    Posts
    • #282217
      Participant
      Topics: 1
      Replies: 1
      Points: 14
      Rank: Member

      Greetings – I need a simple list of AD groups based on group name.  In the output I need name only, output to a *.csv file.

      Get-ADGroup -Filter {name -like “*Magento*”} gets me more info than I need.

      $Obj | Export-Csv c:\users\username\downloads\magento-groups.csv errors out.

      Thanks for the help.

    • #282223
      Participant
      Topics: 52
      Replies: 211
      Points: 890
      Helping Hand
      Rank: Major Contributor
    • #282226
      Participant
      Topics: 1
      Replies: 1
      Points: 14
      Rank: Member

      Thanks Iain; your query also errored out.

       

    • #282286
      Participant
      Topics: 4
      Replies: 12
      Points: 133
      Rank: Participant

      Get-ADGroup -Filter {name -like *Magento*} | select-object name | export-csv "c:\Magento_groups.csv -nti

Viewing 3 reply threads
  • You must be logged in to reply to this topic.