international characters with dsadd in batch file

  • Thread starter Thread starter Mihajlo Cvetanovic
  • Start date Start date
M

Mihajlo Cvetanovic

How to add users from a batch file with characters not from default
code page (like cp1250)? As I gather batch files can't be unicode, or
am I wrong?
 
Mihajlo Cvetanovic said:
How to add users from a batch file with characters not from default
code page (like cp1250)? As I gather batch files can't be unicode, or
am I wrong?

You might be able to use CSVDE.EXE or LDIFDE.EXE to add/import users
from a comma seperated file or LDAP Data Interchange Format
(LDIF) file. LDIFDE.EXE, for example, will import the LDIF file as
unicode, if there is a unicode identifier at the beginning of the
file.

see:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ad/ad/ldif_scripts.asp
 
Matt said:
You might be able to use CSVDE.EXE or LDIFDE.EXE to add/import users
from a comma seperated file or LDAP Data Interchange Format
(LDIF) file. LDIFDE.EXE, for example, will import the LDIF file as
unicode, if there is a unicode identifier at the beginning of the
file.

Thanks for the info. I tried it and it works. However, I found out
that the code page of command prompt can be changed with chcp, so now
it's working even with dsadd.
 
Back
Top