Trouble deleting an azure account from laptop

Shawn Brown 0 Reputation points
2024-05-07T14:52:55.3533333+00:00

We are moving everyone at our company from local accounts to Azure-linked accounts. On my laptop, I wanted to see what would happen if someone else logged into it using their Microsoft credentials. They were able to do so successfully. They now show up in the log in screen and they have a user account under C:\Users. I then went to delete their account from Accounts -> Other Users but it does not show up. How do I remove this account from my laptop? Thanks.

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
36,429 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. akinbade abiola 1,105 Reputation points
    2024-05-07T15:09:00.44+00:00

    Hello Shawn Brown

    Thanks for your question

    Here's how to remove the Entra ID user account that doesn't appear in "Settings -> Other Users" on your laptop:

    You need to open Command Prompt/Powershell as an admin on your computer. You can do this using Windows+X and select terminal (admin).

    You can run the command

    net user

    This will give you the list of accounts on your computer

    User's image

    Once you find the username of the account you wish to remove, you can delete it by typing. (in username below you have to use the actual user name)

    net user [username] /delete

    After running the delete command, you should receive a confirmation message stating that the command completed successfully.

    After these changes, you can proceed to reboot your computer.

    Please let me know if you have further questions

    You can mark it 'Accept Answer' if this helped.

    **


  2. akinbade abiola 1,105 Reputation points
    2024-05-07T18:42:37.8133333+00:00

    Hello Shawn Brown

    thanks for the clarification.

    You can try this:

    Go to Settings and Click on Accounts.

    Select Access work or school and Find the account you want to remove (AzureAcct2).

    Click Disconnect.

    Restart your computer.
    This should remove the account.

    or alternatively in Powershell as admin:
    Get-LocalUser

    Remove-LocalUser -Name "AzureAcct2"

    Please let me know if this helped

    0 comments No comments