question

DGIWD-7054 avatar image
0 Votes"
DGIWD-7054 asked AnwarShaik-7624 published

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

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-client
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

DGIWD-7054 avatar image
5 Votes"
DGIWD-7054 answered VisalGamage-6363 commented

I finally got it to work:

I simple added the prefix

AzureAD\

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

· 4
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

you also can try any prefix, it can help too

anydomain\

2 Votes 2 ·

Another workaround for this is to use .\UserName if the user is locally defined. I had this problem with an AWS VM and this post reminded me that you sometimes need to have the machine qualifier for the user.

0 Votes 0 ·

Awesome, thanks

0 Votes 0 ·

its worked

0 Votes 0 ·
yvonneyang-MSFT avatar image
0 Votes"
yvonneyang-MSFT answered

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?

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

DGIWD-7054 avatar image
0 Votes"
DGIWD-7054 answered

Hello @yvonneyang-MSFT, 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.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

yvonneyang-MSFT avatar image
0 Votes"
yvonneyang-MSFT answered

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--

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

DGIWD-7054 avatar image
0 Votes"
DGIWD-7054 answered DGIWD-7054 commented

Hello,

Yes, I am just trying to connect via RDP to the remote server. I am trying to connect via mstsc, with any of the remote user it does not work.

I don't understand the link you provided me. It is about OpsMgr, it talks about agents, certification servers... I never heard of it before. Why it is relevant to my situation ? I never installed/configured that sort of things on my server.

I was able to login from my computer to this server and one day it just doesn't work anymore from my computer (but from others, it still does). Since it has been a months since I did not login, I can't tell you what I have done on my personal computer which could implies such errors.

· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hei, @DGIWD-7054
Did you have any progress in your case?
I am also struggling with this one, I am not even working with these things.
I just try to connect with RDP to an Azure VM and I am getting the same message.

Let me know if you have made it, I tried to get info from the link they gave you but it's completely out of my scope.
It's just an ordinary VM I am trying to connect to :)

Thank you.

0 Votes 0 ·
DGIWD-7054 avatar image DGIWD-7054 DESALERMOSAchillefs-1463 ·

Hi @DESALERMOSAchillefs-1463 , no, it is still not resolved. I had to use another Windows machine as a jump server. You can also try to use another remote tool, such as teamviewer.

0 Votes 0 ·
AnwarShaik-7624 avatar image
0 Votes"
AnwarShaik-7624 answered AnwarShaik-7624 published

i am also facing the same issue using

.\UserName issue was resolved

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.