Unlink Microsoft account in Windows 10 from cmd or powershell command

Woky88 1 Reputation point
2021-09-20T17:16:09.92+00:00

I want to know what would be the possible command to disconnect Microsoft account in Windows 10 from a cmd or powershell console.

That is to say the same thing that I do manually by pressing the "Disconnect" button in the following image, but launching an internal command that could be saved in a .bat or powershell.

133725-0df2b298-1589-4db4-a04d-d0516f3d4cc7.png

Windows 10 Security
Windows 10 Security
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Security: The precautions taken to guard against crime, attack, sabotage, espionage, or another threat.
2,751 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Limitless Technology 39,351 Reputation points
    2021-09-21T09:34:38.73+00:00

    Hi there,

    Yes you can, can you give it a try the below steps
    Press the Windows key + R to open the Run box. Type netplwiz and press Enter. If prompted by UAC, then click Yes.
    Check the “Users must enter a user name and password to use this computer” box. When this box is unchecked, the user list below and the Remove button will be greyed out.
    Highlight the user account you want to delete and click on Remove
    Click Yes to confirm your account removal

    Hope this answers all your queries, if not please do repost back.
    If an Answer is helpful, please click "Accept Answer" and upvote it : )

    0 comments No comments

  2. Woky88 1 Reputation point
    2021-09-21T10:14:35.847+00:00

    Hello there,

    No, this box that opens with this command that you mentioned is for local users of the system, what I want is to disconnect a microsoft email account through some existing command by cmd or powershell

    0 comments No comments