RDP Saved Password

From KlavoWiki
Revision as of 03:41, 17 June 2024 by David (Sọ̀rọ̀ | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Using the RDP command MSTSC and trying to save a username and password does not work.

Command

Create a saved password using this method.

cmdkey /generic:TERMSRV/mycomputer.domain.local /user:domainname\username /pass:mysecretpssword


Show

If the type is Domain Password it seems to fail. Type needs to be Generic.

cmdkey /list:TERMSRV/*

Domain Password : Will Fail

Currently stored credentials for TERMSRV/*:

    Target: TERMSRV/mycomputer.domain.local
    Type: Domain Password
    User: domainname\username
    Local machine persistence

Generic : Will Succeed

Currently stored credentials for TERMSRV/*:

    Target: TERMSRV/mycomputer.domain.local
    Type: Generic
    User: domainname\username