Admodify admodcmd Error in syntax for changing display name CN Common name
Trying to modify common name of users in an OU within Active Directory. I'm able to run the change in the gui but I have to do this on a daily basis for the next 2 years. I would like to script it and I think I have the syntax for making the change but I'm unable to do so.Here is the syntax I'm using to modify the Common Name. I'm trying to match the SamAccountName.The syntax is as follows:admodcmd -dn ou=users,ou=ad,dc=corp,dc=domain,dc=com -custom cn %'sAMAccountName'%After I input this text I receive the following error in the log file:<user UserDN="LDAP://CN=johnny danger,OU=Users,OU=AD,DC=corp,DC=domain,DC=com" type="Failure" attribute="cn" message="ADMODIFY.ERR - The directory service cannot perform the requested operation on the RDN attribute of an object. (Exception from HRESULT: 0x80072016)" /> Any help would be greatly appreciated.Thanks
February 4th, 2008 5:50pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics