i wrote a java program that takes a txt file with users data and creates a bat file that adds users to active directory but for some reason some users aren't adding. this is an example syntax for one of the users that isn't adding:
dsadd user "cn=OHR,ou=GradStudents,dc=math,dc=sc,dc=edu" -pwd 000000000 -fn RICHARD -mi MICHAEL -ln OH -email OHR@test.sc.edu -mustchpwd yes -profile \\USCMARS\Profiles\GradStudents\OHR -hmdir \\USCMARS\GradStudents\OHR -hmdrv Z:
the error that im getting is:
dsadd failed:cn=OHR,ou=GradStudents,dc=math,dc=sc,dc=edu:A value foe the attribute was not in the acceptable range of values.
ive tried researching it but found nothing. does anyone have any ideas? thanks.