Skip to content

Instantly share code, notes, and snippets.

Created August 14, 2010 23:35
Show Gist options
  • Save anonymous/524842 to your computer and use it in GitHub Desktop.
Save anonymous/524842 to your computer and use it in GitHub Desktop.
We can make this file beautiful and searchable if this error is corrected: Illegal quoting in line 8.
"DN","objectClass","homeMDB","name","displayName","mail","givenName","sAMAccountName","mailnickname","msExchHomeServerName","mDBUseDefaults"
"CN=%%k,OU=Users,OU=2013,OU=Secondary,OU=Students,OU=Users,OU=dn1,DC=dn2,DC=dn3,DC=dn4,DC=dn5","%%j","CN=2013","%%k","%%k","%%[email protected]","%%k","%%k","%%[email protected]","CN=InformationStore,CN=server1,CN=Servers,CN=First Administrative Group,CN=Administrative Groups,CN=shortAD,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=dn1,DC=dn2,DC=dn3,DC=dn4","TRUE"
file2
fn1sn1,fn1,sn1
fn1sn2,fn2,sn2
fn1sn3,fn3,sn3
file3
for /f "tokens=1,2,3 delims=, " %%i in (file1.csv) do csvde -i -k -f file2.csv -j .\
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment