Script to import csv file and example csv file

By jldurham6,

  Filed under: Active Directory
  Comments: None

Csvde -i -f “filename” -k

Example CSV file
DN,ObjectClass,samaccountname,sn,givenname,userprincipalname,description
“CN=Joey American,OU=sales,DC=win2k3,DC=dredsdomain,DC=com”,user,jamerica,American,Joey,jamerica@win2k3.dredsdomain.com,Test Description

——————————————————–

DN,ObjectClass,samaccountname,sn,givenname,userprincipalname,description
“CN=Joey Americana,OU=Sales,DC=win2k3,DC=dredsdomain,DC=com”,user,jamericaa,American,Joey,jamericaa@win2k3.dredsdomain.com,Test Description
“CN=Joey Americanb,OU=Sales,DC=win2k3,DC=dredsdomain,DC=com”,user,jamericab,American,Joey,jamericab@win2k3.dredsdomain.com,Test Description
“CN=Joey Americanc,OU=Sales,DC=win2k3,DC=dredsdomain,DC=com”,user,jamericac,American,Joey,jamericac@win2k3.dredsdomain.com,Test Description
“CN=Joey Americane,OU=Sales,DC=win2k3,DC=dredsdomain,DC=com”,user,jamericad,American,Joey,jamericad@win2k3.dredsdomain.com,Test Description
“CN=Joey Americand,OU=Sales,DC=win2k3,DC=dredsdomain,DC=com”,user,jamericae,American,Joey,jamericae@win2k3.dredsdomain.com,Test Description
“CN=Joey Americanf,OU=Sales,DC=win2k3,DC=dredsdomain,DC=com”,user,jamericaf,American,Joey,jamericaf@win2k3.dredsdomain.com,Test Description
“CN=Joey Americang,OU=Sales,DC=win2k3,DC=dredsdomain,DC=com”,user,jamericag,American,Joey,jamericag@win2k3.dredsdomain.com,Test Description
“CN=Joey Americanh,OU=Sales,DC=win2k3,DC=dredsdomain,DC=com”,user,jamericah,American,Joey,jamericah@win2k3.dredsdomain.com,Test Description
“CN=Joey Americani,OU=Sales,DC=win2k3,DC=dredsdomain,DC=com”,user,jamericai,American,Joey,jamericai@win2k3.dredsdomain.com,Test Description
“CN=Joey Americanj,OU=Sales,DC=win2k3,DC=dredsdomain,DC=com”,user,jamericaj,American,Joey,jamericaj@win2k3.dredsdomain.com,Test Description
“CN=Joey Americank,OU=Sales,DC=win2k3,DC=dredsdomain,DC=com”,user,jamericak,American,Joey,jamericak@win2k3.dredsdomain.com,Test Description
“CN=Joey Americanl,OU=Sales,DC=win2k3,DC=dredsdomain,DC=com”,user,jamerical,American,Joey,jamerical@win2k3.dredsdomain.com,Test Description
“CN=Joey Americanm,OU=Sales,DC=win2k3,DC=dredsdomain,DC=com”,user,jamericam,American,Joey,jamericam@win2k3.dredsdomain.com,Test Description
“CN=Joey Americann,OU=Sales,DC=win2k3,DC=dredsdomain,DC=com”,user,jamerican,American,Joey,jamerican@win2k3.dredsdomain.com,Test Description
“CN=Joey Americano,OU=Sales,DC=win2k3,DC=dredsdomain,DC=com”,user,jamericao,American,Joey,jamericao@win2k3.dredsdomain.com,Test Description
“CN=Joey Americanp,OU=Sales,DC=win2k3,DC=dredsdomain,DC=com”,user,jamericap,American,Joey,jamericap@win2k3.dredsdomain.com,Test Description
“CN=Joey Americanq,OU=Sales,DC=win2k3,DC=dredsdomain,DC=com”,user,jamericaq,American,Joey,jamericaq@win2k3.dredsdomain.com,Test Description