This is the guide to use Remote Desktop on Windows 11 Pro with Microsoft Account logged in and enabled MFA.
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 computernamle-az
: the Local Account username on the remote computerle***@li**.com
: the Microsoft Account username on the remote computer
- Enable Remote Desktop on the Computer that you want to remote.
- On that remote computer, Run the following command in the Run…
runas /u:MicrosoftAccount\[email protected] cmd.exe
- A Command Prompt will be shown, type your current Microsoft Account password and enter.
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.
—
Nam Le,
Personal experiment, https://nready.net
Last modified on January 28th, 2022 at 11:32 pm
Nam Le
lequocnam
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!
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,
Mine works with this username format, but not with the result from ‘whoami’ command:
azuread\[email address]