Difference between revisions of "Export AD Group Members to CSV"

From Wiki.CoreyBlair.US
Jump to navigation Jump to search
(Created page with "# Create the following directory (or use the directory of your choice) ::<code>c:\ADGroupQuery</code> # Open Powershell # Enter the following command changing "Name of Group"...")
 
(No difference)

Latest revision as of 14:04, 25 April 2018

  1. Create the following directory (or use the directory of your choice)
c:\ADGroupQuery
  1. Open Powershell
  2. Enter the following command changing "Name of Group" to the name of whatever group you are trying to populate
Get-ADGroupMember -identity “Name of Group” | select name | Export-csv -path C:\ADGroupQuery\Groupmembers.csv -NoTypeInformation[1]

References

  1. Author: BC, [1]