I can't seem to get RDP credentials to store in the credential manager.
I started with something like this:
CredentialCache credentialCache = new CredentialCache();
credentialCache.Add(new Uri("TERMSRV//RemoteMachine"), "Digest", new NetworkCredential(username, password, domain));
It was upset about the Uri and I couldn't figure out the magic syntax.
Finally, I got to this:
NetworkCredential theNetworkCredential = new NetworkCredential(@"domain\username", "password");
CredentialCache theNetCache = new CredentialCache();
theNetCache.Add(new Uri(@"rdp://RemoteMachine:3389"), "Basic", theNetworkCredential);
and while it doesn't error out, it doesn't show up in the Credential Manager.
Any idea what I'm doing wrong or not doing at all?