The Name Reference is Invalid

When setting up a new user in “active directory users and computers” I like to find a similar user and copy their account. This way I can set the account up faster and I am less likely to miss something. But for the past few months I have been fighting this active directory error “the name reference is invalid” when trying to copy an account.Active Directory Logo

I always seem to be in a hurry when this pops up so I try another account to copy and if I have no luck I just set it up from scratch. But today I had enough so I started to dig into what was going on.

Windows cannot create the object “Username” because: The name reference is invalid.

This is the dreaded error I always got. Other people in my department got the same error as well so I knew it did not have anything to do with my computer.

The name reference is invalid

Don’t you just love how Microsoft manages to put no helpful details in their error messages?

The fix

It turns out for us at least the problem was an entry in the “showInAddressBook” attribute of the user we were trying to copy. It looked like this.
Ad Properties

CN=All Recipients(VLV)\0ADEL:268e59f1-29e4-4ab2-baf8-a86fac6aa6b4,CN=Deleted Objects,CN=Configuration,DC=DOMAINNAME,DC=com

After removing that value the copy function started to work again.

I am guessing it was some legacy thing from an old server because it only seemed to be a problem with older accounts and not new ones. Maybe from when we moved to Office365 but that is just a guess.

Found this Helpful?

Then please consider subscribing to my newsletter and be the first to hear about new articles and information from Sysjolt!


2 thoughts on “The Name Reference is Invalid

Leave a Reply

Your email address will not be published. Required fields are marked *