This web page requires JavaScript to be enabled.

JavaScript is an object-oriented computer programming language commonly used to create interactive effects within web browsers.

How to enable JavaScript?

Remote Desktop on Windows 11 with Microsoft Account MFA

Posts November 2, 2021 Nam Le 8

This is the guide to use Remote Desktop on Windows 11 Pro with Microsoft Account logged in and enabled MFA.

Remote Dektop - NREADY.NET

On Windows 11 Pro (also Windows 10 Pro), If the user has signed in to Microsoft Account and enabled MFA, so the Local Account password is swept out once switching to Microsoft Account and we cannot using the Local Account password anymore.

So how can we use the Remote Desktop to remote to that computer? Tried the Local password or Microsoft Account password but cannot to connect?

The fact that, It’s still worked but seem there are some issues with this new OS, so we have to do some tricks.

Let’s say:

  • namle-zenbook: the remote computer
  • namle-az: the Local Account username on the remote computer
  • le***@li**.com: the Microsoft Account username on the remote computer
  1. Enable Remote Desktop on the Computer that you want to remote.

Remote Dektop - NREADY.NET

  1. On that remote computer, Run the following command in the Run…
    runas /u:MicrosoftAccount\[email protected] cmd.exe


  1. A Command Prompt will be shown, type your current Microsoft Account password and enter.

Remote Dektop - NREADY.NET

Now, you can connect to that computer via Remote Desktop.

We can use both Local Account user (ex: namle-az) and Microsoft Account username (ex: le***@li**.com), with password is the current Microsoft Account password.

Remote Dektop - NREADY.NET

Nam Le,
Personal experiment,

Last modified on January 28th, 2022 at 11:32 pm

Nam Le

8 responds

  1. TheIcemanCometh says:

    Thank you for this. I’d been racking my brain for more than an hour trying to get in this way, and this article solved it. Thanks again!

  2. There is a much easier way.
    Login to windows 11 locally with your Microsoft account, open a non-administrative CMD
    Issue the command whoami
    it will return a username in the format machine\name
    use that in the RDP username dialog box,

  3. Neil Yoder says:

    Mine works with this username format, but not with the result from ‘whoami’ command:

    azuread\[email address]

  4. Andrew says:

    So many answers to this question, this is the only one that worked. Took me days to find your answer. Thank you so much for posting it. Someone tell Microsoft please.

  5. Timi S says:

    I swear I have spent hours working on a solutíon and this one worked flawlessly! Thank you so much for helping me in these dire needs and Microsoft not being able to answer….

  6. mali says:

    If you try running this command on a fresh install Windows 11 you will get some weird error. Fix is simple, reboot the machine and try again 🙂

  7. Alliteration says:

    The command syntax did not work for me, instead I substituted runas / cmd.exe
    This being the same MS account that I had used to login to Windows the first time and each time since installing W11 on
    System Manufacturer: Dell Inc.
    System Model: OptiPlex 7020
    System Type: x64-based PC
    Processor(s): 1 Processor(s) Installed.
    [01]: Intel64 Family 6 Model 60 Stepping 3 GenuineIntel ~3401 Mhz
    BIOS Version: Dell Inc. A18, 5/30/2019

  8. Nam Le says:

    Thanks Alliteration, so we have another useful command.

Leave a Reply

Your email address will not be published.