Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing / renaming a CN 1

Status
Not open for further replies.

Narfix

Programmer
Oct 16, 2006
2
FR
Hello !

I've been trying to rename accounts in Active Directory. Where I can easily modify sn, givenName, UserPrincipalName, samAccountName or DisplayName, I can't figure a way to modify the cn.

Is there a way to modify a cn ?
I always get an error -2147016682 / 0x80072016.

The same applies to distinguishedName or canonicalName. No idea if they can be modified. If I try I get a constraint violation -2147016654 / 0x8007202f.

Do I have to clone the account with the new name ? or is there an obvious way to do that ?

Thanks a lot !!

 
Why didn't I think of that ?!?!?!

It works like a charm ! Thanks a whole lot tsuji !
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top