Remove user AzureAD account from computer, cmd line

Dawid Moskalczuk 5 Reputation points
2023-05-16T17:27:06.69+00:00

Like in topic: no admin right!

Remove AzureAD user account from computer. net user "AzureAD/******@xxx.xxx" /delete not working. I know - I can do this via registry, but simple way is to know something in one command.

Why? Because users without admin right have list users with admin right on asking window - it's occur when laptop change owner or last name was wrong.

Microsoft Security Microsoft Entra Microsoft Entra ID
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Vahid Ghafarpour 23,385 Reputation points Volunteer Moderator
    2023-05-16T17:39:16.56+00:00

    Did you try this Powershell command?

    Remove-LocalUser -Name "AzureAD\username"
    
    
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.