username script

  • Thread starter Thread starter paul
  • Start date Start date
P

paul

I'm looking for a script to grab the user names out of an
ou and make a text file with it....any ideas? I've been
working on one for a bit but can't get it to work
 
have you tried csvde export utility ? the command should look like

C:\Documents and Settings\Administrator>csvde -f test.csv -d
"ou=yourou,dc=yourdomain,dc=local" -r
"(&(objectclass=user)(objectcategory=person))" -l "samaccountname"

open exported file in excel and edit it there.

--

Regards

Matjaz Ladava, MCSA, MCSE, MCT, MVP
Microsoft MVP Windows Server - Active Directory
(e-mail address removed), (e-mail address removed)
 
Paul...

I have something for you... if you contact me directly I will supply you
with a customized version for your environment...

(e-mail address removed)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top