Cannot delete user, does not exist.

Ian S. Lindsay 1 Reputation point
2021-08-26T13:46:39.177+00:00

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?
126707-delete-in-aduc.jpg126755-delete-in-adsi-edit.jpg

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

2 answers

Sort by: Most helpful
  1. Limitless Technology 39,511 Reputation points
    2021-08-26T18:10:16.683+00:00

    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
    2021-08-26T18:26:06.977+00:00

    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