Cannot delete user, does not exist.

Ian S. Lindsay 1 Reputation point

I have a user in my demo AD that I cannot delete. I am getting an error that it does not exist. Despise seeing it right there in the AD. Errors attached. Any ideas?

Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
5,959 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Limitless Technology 39,416 Reputation points

    Hello @Ian S. Lindsay

    I would suggest you to please check this user properties and un tick prevent accident deletion.

    Also , Please try to remove using below powershell command.

    Remove-ADUser MyUser -recursive -Confirm:$false  

    If you still can not delete please try to remove from ADSI.

    If the reply was helpful, please don’t forget to upvote or accept as answer.

    0 comments No comments

  2. Ian S. Lindsay 1 Reputation point

    Accidental deletion is not checked. Did try to delete with ADSI edit, that was the 2nd error posted. And PS fails too:

    Remove-ADUser : The specified account does not exist
    At line:1 char:1

    • Remove-ADUser -Identity "CN=Fred Schnitzer,OU=Antarctica,OU=Lindsay,O ...
    • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    • CategoryInfo : NotSpecified: (CN=Fred Schnitz...ancorp,DC=local:ADUser) [Remove-ADUser], ADException
    • FullyQualifiedErrorId : ActiveDirectoryServer:1317,Microsoft.ActiveDirectory.Management.Commands.RemoveADUser

    In ADSI edit I did notice that the account does not have a SID.

    0 comments No comments