Receive error: ûdn is not a valid switch

Feb 4, 2009 at 1:13 PM
Hi all,

I have an input file which contains DisplayNames, and PhoneNumbers which have to be changed usings ADModcmd.
I want to use the DisplayName in the LDAP filter, however this doesn't seem to work. I receive an error: ûdn is not valid switch
This is the code I used:

FOR /F "eol=; tokens=1,2,3,4 delims=:" %%i IN (%InputFile%) DO %ADModPath% –dn <domain> –p 1000 –s –server <server> -f (displayName=%%i) -custom homePhone %%l

I have omitted domain and server for privacy reasons.

Hope someone can give me some advice.

Kind regards,

Feb 5, 2009 at 8:11 AM
Hi all,

I have solved the problem. Somehow the dashes in the command weren't seen as dashes.