RDP Saved Password

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