cmdkey

Credential Manager Command Line Utility

Credential Manager Command Line Utility


cmdkey

  • C:\Windows\system32\cmdkey.exe /?

Output:


Creates, displays, and deletes stored user names and passwords.

The syntax of this command is:

CMDKEY [{/add | /generic}:targetname {/smartcard | /user:username {/pass{:password}}} | /delete{:targetname | /ras} | /list{:targetname}]

Examples:

  To list available credentials:
     cmdkey /list
     cmdkey /list:targetname

  To create domain credentials:
     cmdkey /add:targetname /user:username /pass:password
     cmdkey /add:targetname /user:username /pass
     cmdkey /add:targetname /user:username
     cmdkey /add:targetname /smartcard
    
  To create generic credentials:
     The /add switch may be replaced by /generic to create generic credentials

  To delete existing credentials:
     cmdkey /delete:targetname

  To delete RAS credentials:
     cmdkey /delete /ras
    

Return Code: 1


C:\Windows\system32\cmdkey.exe
c:\>ver
Microsoft Windows [Version 10.0.19045.2075]
FileInfo
File Size20480bytes
Creation Time2019/12/07 18:08:49
LastWrite Time2019/12/07 18:08:49
ProductVersion10.0.19041.1
FileVersion10.0.19041.1 (WinBuild.160101.0800)
HashValue
MD5f9c20642b4cfce4517f4f26b6305607c
SHA1b0de4d5f0e178002e02c66daf064dfd3ff1dbde6
SHA224f078a7029cce2eb2ee52377e1ffdf3d504635019cf65349f4349c9cf
SHA25614bcc1901c5cca8e91a6400050308752916ac861bdd52cf3a44dc7ef46830282
SHA38445f38a585851501faa095a9374aec160db3800b9ac9196d0d64aa1df74e449d97a1c542737072b169deaa2493f3c2862
SHA5128eb98b07e17ef8b0891f79c5248f3a59eeba41f190746c4407ac401329225a17051401a82807cbacdb265784eea4d38bd8bf89e3080c30faffe4c3f5691d1a13
Built with Hugo
Theme Stack designed by Jimmy