"Windows Defender Credential Guard does not allow using saved credentials" for RDP connections?
Dec 6
Recently when running a Remote Desktop Connection under this Windows version
OS Name Microsoft Windows 11 Pro
Version 10.0.22621 Build 22621
Other OS Description Not Available
OS Manufacturer Microsoft Corporation
I can no longer use the saved RDP credentials and every connection gives this message:
Upon google'ing, I've tried editing registry values, policy changes, rebooting etc.,... but nothing is working.
I'd like to use Remote Desktop without having to manually enter my credentials each time!
Any ideas?
1 answer
Accepted answer · original discussion
Mar 11
I found a solution that doesn't require modifying registry or policy to disable the new Credential Guard.
I went through my TERMSRV saved credentials and removed them, and re-added with cmdkey commands.
To list saved credentials:
cmdkey /list:TERMSRV/*
To delete a saved credential:
cmdkey /delete:TERMSRV/<targetNameOrIp>
To add a credential that will actually work with CG turned on:
cmdkey /generic:TERMSRV/<targetNameOrIp> /user:<username> /pass:<password>
To avoid typing in password as argument which will be visible on screen and shell history, use /pass: which will prompt for password instead.
I was even able to save passwords for microsoft accounts which use email@address for usernames.
All credit for this solution goes to the user informatik01 on microsoft forums
According to informatik01, passwords saved through the RDP UI end up as "Domain" type credentials and aren't compatible with CG. Passwords saved through cmdkey /generic flag ends up as "Generic" type, and DO work with CG enabled.
1 question comment
Use comments to ask for clarification. Post a solution as an answer.
Mar 6
cmdkey /generic:TERMSRV/<targetname> /user:<username> /pass:<password> in a question about this feature at the Microsoft forums: https://learn.microsoft.com/en-us/answers/questions/1021785/windows-11-22h2-cant-use-saved-credential?page=1&orderby=helpful&comment=answer-1177710#answers