Script to add computers to AD overwrites existing names???

I’ve got a script that creates and then adds computers to AD based on certain characteristics of the user. It auto generates a name then checks AD to see if the name is available if not it generates an other name and so on until it finds a free name. At least that is what it is supposed to do. The last 2 times I’ve run it, its decided that a name already in use is ok to take. I didn’t know it was even possible to add a name to AD that already existed.
So, I’m not sure if this is a PowerShell thing or an AD thing. Anyone experienced this?

So AD has 2 objects with the same name? How do you know it “took” the existing name?

Code would probably help, too, btw…

Ya so, um, the thing is this…apparently someone in my organization was going through and “cleaning out” old or apparently unused names. So if we could just pretend this never happened…

“I know nothing! I see nothing! I hear nothing!” - Sgt. Schultz

Thanks!
I was going nuts trying to figure out how the heck a script could overwrite a name already in AD!!

Someone isn’t getting a Christmas card this year!