Score:0

How does one log into a Windows server, via RDP, using a Microsoft account with 2FA enabled?

cn flag

My client runs a Windows server, and has added me to it using my Microsoft account. I do not have physical access to this server. RDP is giving me authentication errors if I try to connect, which are related to the two factor authentication on my account. I cannot find anything in the Remote Desktop Connection client within my Windows 11 system that looks related to 2FA requests.

How do I, completely remotely, authenticate to RDP using this Microsoft account, without disabling 2FA?

joeqwerty avatar
cv flag
How about posting a screenshot of the error or message?
Nicholas O'Connor avatar
cn flag
It doesn't say anything more than "The logon attempt failed".
cn flag
Then how is it related to two factor authentication?
Nicholas O'Connor avatar
cn flag
Because I've indepedently verified that the credentials were otherwise correct (via logging into accounts.microsoft.com in a fresh browser profile), and have also independently verified (via Slack message) that I'm also listed as a user on that server. I'm allowed in, my password manager has the right password, only thing left I know of by process of elimination is 2FA.
joeqwerty avatar
cv flag
What Windows Server edition is the server running? How did they add your Microsoft account? By Microsoft account do you mean Office 365 account? I'm not aware that you can log into Windows Server with a Microsoft account, other than in Windows Server Essentials.
Nicholas O'Connor avatar
cn flag
I'm sorry, but those aren't questions I have answers for, I'm a Linux person trying to deploy something on Windows. All I know is "It's the same Microsoft account I used to log into my one Windows computer for video games". I'm not an Office 365 user, though, I can confirm that much.
Score:0
cn flag

We've ended up working around this by creating a local account for myself to work with instead. I'm certain there's a way to make this work though, so I'm not flagging myself as the "resolved" answer.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.