Simple list of AD Group Names that match a keyword

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.

Get-ADGroup -Filter {name -like “*Magento*”} -Property name | Select-Object -Property name

Thanks Iain; your query also errored out.

 

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