Credentials supplied to the package were not recognized when connecting to some Windows Server Machines

DGIWD 246 Reputation points
2020-07-28T09:45:02.903+00:00

Hello, I am trying to connect in RDP several machines under Windows Server 2019 but when I log-on (with correct user/password of course), it denies me with:

"An authentication error has occurred. The credentials supplied to the package were not recognized".

I am in Windows 10 pro connected to an AzureAD domain.

I can log in to these servers from an another machine in Windows 10 but not logged into the domain.

I search on Google with no luck.

Has anyone an idea ?

Thanks.

Remote Desktop
Remote Desktop
A Microsoft app that connects remotely to computers and to virtual apps and desktops.
4,713 questions
0 comments No comments
{count} votes

Accepted answer
  1. DGIWD 246 Reputation points
    2020-12-24T09:38:34.677+00:00

    I finally got it to work:

    I simple added the prefix

    AzureAD\

    before my username... Go figure out why...

    27 people found this answer helpful.

6 additional answers

Sort by: Most helpful
  1. Anwar Shaik 36 Reputation points
    2022-08-02T19:08:23.577+00:00

    i am also facing the same issue using

    .\UserName issue was resolved

    7 people found this answer helpful.

  2. Yvonne Yang (Shanghai Wicresoft Co,.Ltd.) 226 Reputation points
    2020-07-29T07:48:18.053+00:00

    hi,
     "An authentication error has occurred. The credentials supplied to the package were not recognized".
    =>The certificate is actually used to do server side TLS authentication. so do you have an idea about what kind of Certificate Authentication be used in your domain? or can you give us more details about how you generate the certificate used by RDP client? Self-assigned CA or Public CA? or Root CA? or OpenSSL? 
     you can try a Self-assigned CA in the way below:
    This self signed certificate in .pfx together with the password could be generated by below code snippet from Config-DriverComputer.ps1

    $cert = New-SelfSignedCertificate -DnsName $certCN -CertStoreLocation "cert:\LocalMachine\My"

    $securePwd = (ConvertTo-SecureString -string "$certPwd" -Force -AsPlainText)

    Export-PfxCertificate -Cert $cert -Force -Password $securePwd -FilePath "$env:HOMEDRIVE$certFileName.pfx"

    Would you please also try these PowerShell commands to re-generate the test certificate?

    0 comments No comments

  3. DGIWD 246 Reputation points
    2020-07-29T10:27:32.067+00:00

    Hello @Yvonne Yang (Shanghai Wicresoft Co,.Ltd.) , thank you for your answer.

    I have little knowledge in Windows products, I am the domain admin and I have just setup an AzureAD domain with default configuration.

    I don't know to what you are referring to when you speak about Certificate Authentication on my domain.

    I didn't generate a certificate for RDP client, I am connecting with user/password, I am not using certificate based authentication (I don't even know how to do that).

    However, since I manage the Windows Sever with Ansible, I did generate a certificate for the WinRM HTTPS listener with this script, I am not sure how this is related.

    Also, I forgot to mention that the server is not part of AzureAD domain (we just enrolled the workstations).

    I am not sure how to apply the commands you shared to me.

    I hope this clarifies my setup. Thank you.

    0 comments No comments

  4. Yvonne Yang (Shanghai Wicresoft Co,.Ltd.) 226 Reputation points
    2020-07-31T08:40:13.073+00:00

    hi,
    I noticed if you are trying to use RDP to connect the remote server? if any misunderstanding, please correrct me.
    If yes, can you share me in which way you're using RDP to connect? Via cmstsc? or rdp.file? With 1 user to login?
    Since it's not so clear on your senirio, here is the link for your reference:
    https://techcommunity.microsoft.com/t5/system-center-blog/monitoring-opsmgr-workgroup-clients-part-2-installing/ba-p/350806

    Hope that can help you!

    --please don't forget to Accept as answer if the reply is helpful--

    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.