Export Group Members to a Csv

This PS command list and export  Group Members of a Group

Get-ADGroupMember -Identity "GroupNamex" -recursive | Get-ADUser -Properties samaccountname | select samaccountname | Export-Csv -Path "c:\myexport.csv"

© selimatmaca.com. All Rights Reserved.