Re: Export Member from a Security Group
- From: "Richard Mueller" <rlmueller-NOSPAM@xxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 12 Dec 2006 11:31:20 -0600
Sorry, I meant replace all instances of ; with ",".
Richard
"Richard Mueller" <rlmueller-NOSPAM@xxxxxxxxxxxxxxxxxxxx> wrote in message
news:eochEBhHHHA.4712@xxxxxxxxxxxxxxxxxxxxxxx
The csvde command places all of the member DN's in one field, enclosed
with quotes because there are embedded commas. The DN's in this field are
delimited by semicolons. One solution would be to open the csv file in a
text editor and replace all instances of ; with ";". Then when the csv
file is imported into Excel, each DN will be in it's own cell.
--
Richard
Microsoft MVP Scripting and ADSI
Hilltop Lab - http://www.rlmueller.net
"Correy" <Correy@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:7ECE182F-F4E2-4684-AF06-5421B6F278E5@xxxxxxxxxxxxxxxx
Richard, That worked just like you said, but the only problem is that it
puts
all the members in one cell with all of the information I don't need like
this:
CN=MemberName,OU=Users,OU=City,OU=Organization,DC=Domain,DC=DomainName,DC=org;
Is there anyway to get it a little cleaner? I was hoping for one member
name per cell? Is that possible?
Thanks
"Richard Mueller" wrote:
Correy wrote:
Is there a command or utility I can use to export the list of members
contained in a security group to a .cvs file? If so, an example of
the
command would be great!! Or where to get the utility from.
You can use the command line utility csvde, found on any DC. For
example, to
export all members of group with NetBIOS name TestGroup to a file called
report.csv:
csvde -f report.csv -r "(sAMAccountName=TestGroup)" -l member
There is help at the DC command line, or you can search for info on the
Microsoft web site. Another option would be Joe Richards' free utility
adfind available on his web site:
www.joeware.net
--
Richard
Microsoft MVP Scripting and ADSI
Hilltop Lab - http://www.rlmueller.net
.
- References:
- Re: Export Member from a Security Group
- From: Richard Mueller
- Re: Export Member from a Security Group
- From: Richard Mueller
- Re: Export Member from a Security Group
- Prev by Date: Re: Export Member from a Security Group
- Next by Date: MemberUID group class attribute
- Previous by thread: Re: Export Member from a Security Group
- Next by thread: Re: AD restore on different Hardware
- Index(es):
Relevant Pages
|