Problem accessing laptop with remote desktop and using runas with my Microsoft credentials

Mark Wood-Patrick 1 Reputation point
2025-01-11T15:13:41.4066667+00:00

I have two laptops  mlwphpenvy360 and mlwphpenvy both running latest version of Windows 11 (10.0.26120.2705) which does not allow "sign in with password" (see below) Remote connection from mlwphpenvy to mlwphpenvy360 works with Microsoft username/password

 

Remote connection from mlwphpenvy360 to  mlwphpenvy usimg Microsoft username/password gets prompted for password but rejects my Microsoft password (which I verified) On the laptop which I can remote desktop into I can run the command: runas /u:MicrosoftAccount*** Email address is removed for privacy *** cmd.exe This works just fine, but on the laptop I can't remote desktop into I get:

Enter the password for MicrosoftAccount*** Email address is removed for privacy ***:

Attempting to start cmd.exe as user "MicrosoftAccount*** Email address is removed for privacy ***" ...

RUNAS ERROR: Unable to run - cmd.exe

1326: The user name or password is incorrect.

Yet settings/accounts confirm my account on this laptop is *** Email address is removed for privacy *** and I verified the password specified is correct. Does anyone have any suggestions as to what the issue is or how to debug?

Image

Windows for business | Windows Client for IT Pros | User experience | Remote desktop services and terminal services
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Anonymous
    2025-01-13T07:04:38.23+00:00

    Hello,

    The most likely reason is:

    One of your PC (I think mlwphpenvy360 ) is not able to authenticate a MS mail user. That's why you cannot login with your credentials directly.

    So, I suggest you abandon pre-auth, in a straightforward way, you need to disable NLA in all your 2 PC:

    Open gpedit.msc applet.

    Navigate to Computer Configuration -> Administrative Templates -> Windows Components -> Remote Desktop Services -> Remote Desktop Session Host -> Security.

    Enable Require use of specific security layer for remote (RDP) connections and select RDP as Security Layer.

    Disable Require user authentication for remote connections by using Network Level Authentication policy.

    Reboot Terminal server.

    If you don't have group policy options, try to disable NLA from UI. Then log in to your account as if you were logging in locally.


    If the Answer is helpful, please click "Accept Answer" and upvote it.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.