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]
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.
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….
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 🙂
The command syntax did not work for me, instead I substituted runas /user:d##.##@outlook.com 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
Thanks Alliteration, so we have another useful command.
This worked for me – tried about a dozen things that didn’t. Thanks for posting this!
Many thanks to you! The frustration level was at such a height 😡😂 This did it for me. I was suspecting the MFA but was in the dark…
So, from what I gathered, Win11 Pro doesn’t try authenticate RDP connections with the Microsoft authentication server, it simply checks it’s local cache. When using say Hello or a Pin or the authenticator app, the local password is wiped out?
So, I figured I needed to disable these, login with the latest password so it would cache, then login. From what I gather, doing the RunAs is a way to authenticate via password and get it into the cache so RDP works. I’m curious if this cache sticks around if I use Hello or Pin again.
I’ll try when I get home. So many ways this can be better, passing through credentials on a trusted network from another device logged into the same Microsoft account. Use of Yubi key. Redirect to authenticator app, relay authentication to the Microsoft server.
So much for going passwordless, you’d never be able to RDP.
(Frustrating and ridiculous… I wonder if I can use Okta authentication/authorization instead?!)
This solved it for me 🙂
https://www.augmastudio.com/2021/11/11/resolve-the-remote-desktop-app-connection-issue-with-azure-ad-joined-pc/
This works to resolve the same issue on Windows 10. thanks. Its like magic. I guess it works like Mike Jensen said above. I would never have guessed it on my own!
Worked like a charm. Would it be possible to share a bit more detail on exactly what’s happening here? Why does it work?
Hi, I use a Remote desktop connection client from a macbook to a mini PC MELE Quieter used to run an astrophotograpy setup. Your solution works like a charm, it was the only one to solve definitely my crucial problem as I need to be connected with my MS account on the target PC to let some files be synchronized with onedrive.
Thanks again, Frederic
Oh wow, glad to help you!
The runas /u:MicrosoftAccount\[email protected] cmd.exe and entering the password on the target machine, then connecting from the other machine, worked. Thanks a ton.