For doing semi-colon delimted you'd change the lines from something that looked like this
OutPutFile.WriteLine "name: " & oUser.Get ("name")
to
OutPutFile.Write
I need a powershell or VBS script that will dump active directory (given name, last name, samaccount, etc.) information into a semicolon delimited text file.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Hi, look here (http://www.experts-exchan
I better suggest you to take a easy step by just importing AD particular/whole users into excel using CSVDE Command.
Following are the links to do so:
http://support.microsoft.c
http://technet.microsoft.c
http://www.computerperform
Regards,
CharlesD
You can also use LDP tool to extract data from AD.
http://www.petri.co.il/
I used a powershell script to solve the problem:
'=========================
'=Create maildump files ='
'=========================
$arrayadmin = get-mailbox -organizationalunit 'OU=Admin People,OU=Employee People,OU=People,DC=rdcsrv
$arrayadmin | select samaccountname, customattribute1, customattribute3, primarysmtpaddress | export-csv c:\emaildump\admin.csv -notype
$arrayfaculty = get-mailbox -organizationalunit 'OU=Faculty People,OU=Employee People,OU=People,DC=rdcsrv
$arrayfaculty | select samaccountname, customattribute1, customattribute3, primarysmtpaddress | export-csv c:\emaildump\faculty.csv -notype
$arrayITS = get-mailbox -organizationalunit 'OU=ITS People,OU=Employee People,OU=People,DC=rdcsrv
$arrayITS | select samaccountname, customattribute1, customattribute3, primarysmtpaddress | export-csv c:\emaildump\its.csv -notype
$arraystudent = get-mailbox -organizationalunit 'OU=Student People,OU=People,DC=rdcsrv
$arraystudent | select samaccountname, customattribute1, customattribute3, primarysmtpaddress | export-csv c:\emaildump\student.csv -notype
'=========================
'=Send Files via email ='
'=========================
send-mailmessage -to "Patrick <test@rdc.ab.ca>" -from "Patrick <test@rdc.ab.ca>" -subject "Maildump" -body "Maildump" -smtpserver "benten.rdcsrvcs.ads" -Attachments "c:\emaildump\student.csv"
'=========================
'=Move files to log folder ='
'=========================
$date=get-date format d
$date=$date -replace "/", "-"
$storage=new-item -path c:\EmailDump\logs -name "$date" -type directory
move-item -path c:\EmailDump\*.csv -destination $storage
Business Accounts
Answer for Membership
by: CCongdonPosted on 2009-11-06 at 11:39:47ID: 25762373
From http://technet.microsoft.c om/en-us/l ibrary/bb7 27091.aspx
This creates a file named Marketing.txt, which contains a list of users and some of their attributes, such as distinguished name, name, state, and street address.
Select allOpen in new window