Options

Pre-Windows2000 logon name exists

LunchbocksLunchbocks Member Posts: 319 ■■■■□□□□□□
I am currently working on the labs for Automating Account Creation. While trying to create a user account with a PowerShell script, I kept getting the following error:

Exception calling "SetInfo" with "0" argument(s): "The object already exists. (Exception from HRESULT: 0x80071392)"
At C:\Users\Administrator\Desktop\newuser.ps1:4 char:17
+ $objUser.SetInfo( <<<< )

So I tried to create the user account with ADU&C, and got an error stating that the Pre-Windows 2000 logon name already exists in the domain. I looked throughout ADU&C, and even did a search via find users and dsquery, and there is nothing with the user account. Also, it is not an account I remember creating. Does anyone have any idea why this might be?

For the sake of the labs, I changed the logon name from scott.mitchell to scottmitchell.

Thanks,
Degree: Liberty University - B.S Computer Science (In Progress)
Current Certs: CCENT | MCTS | Network+
Currently Working On: Security+
2020 Goals: CCNA, CCNP Security, Linux+


Comments

  • Options
    Hyper-MeHyper-Me Banned Posts: 2,059
    Did you look for it in ADSI?
  • Options
    LunchbocksLunchbocks Member Posts: 319 ■■■■□□□□□□
    No I didn't, I'll do that tonight when I get home and see what I find. I think I might know what happened. One of my earlier automated account creation PS scripts failed (fat-fingered it). I wonder if it had created the name even though it failed?

    I'll post back what I found.
    Degree: Liberty University - B.S Computer Science (In Progress)
    Current Certs: CCENT | MCTS | Network+
    Currently Working On: Security+
    2020 Goals: CCNA, CCNP Security, Linux+


Sign In or Register to comment.