I'm trying to add credentials for remote desktop connection via the cmdkey command
cmdkey /add:TERMSRV/myserver /user:MyUser /pass:MyPassword
I wanted to check that this added correctly via the Credentials Manager GUI control.exe /name Microsoft.CredentialManager
then Windows Credentials
but the entry is saved with the persistence type of "Enterprise" which I don't think the Remote Desktop Client on Windows 10 likes. I have the belief that by modifying this to be "Local Computer" will solve the issue.
How can I modify the persistence type from "Enterprise" to "Local Computer"? A scriptable solution is preferred.