Re: Export Member from a Security Group

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance




Excellent, i tried adfind to export the members of a security group, to
a excel CSV or .txt file. i also figured out the syntax to export the
names and document name of the security groups within the organizational
unit.

heres the syntax:

to get the groups names with the domain
adfind -b ("OU=group123,OU=unit123,DC=domain123,DC=local" ) -csv >
group.csv
*the CSV file will be located where adfind.exe had been placed

To get the user's names and full names in to csv file:
adfind -b "cn=groupName,OU=unit123,DC=Domain123,DC=local " -asq member
displayname sAMAccountName -csv > file123.csv

hope this helps.

Asif


--
apervaz
.



Relevant Pages

  • Re: From D
    ... want that syntax behavior to carry over into run-time. ... Exactly the same way that it works for string literals in source code: ... behaviour of the csv module. ... Who said I was using the csv module? ...
    (comp.lang.python)
  • exporting info from an OU
    ... I need to export a user list from a security group in AD..... ... I know I can use the csvde utility, but I can't get the syntax right. ... the list of users from is called 'Citrix Oneworld'. ...
    (microsoft.public.win2000.active_directory)
  • Create LOCAL security group with description
    ... I found this syntax for editing an AD security group, ... should be totally different for a LOCAL security group? ...
    (microsoft.public.scripting.vbscript)