CMDKEY.exe (Windows 7)

Create, list or delete stored user names, passwords or credentials.

Syntax
      cmdkey [{/add:TargetName|/generic:TargetName}]
         {/smartcard|/user:UserName [/pass:Password]}
            [/delete{:TargetName|/ras}]
               /list:TargetName

Key:
   /add            Add a user name and password to the list.

   TargetName      The computer or domain name that this entry will be associated with.

   /generic        Add generic credentials to the list.

   /smartcard      Retrieve the credential from a smart card.

   /user:UserName  The user or account name to store with this entry.
                   If UserName is not supplied, it will be requested.

   /pass:Password  The password to store with this entry. If Password is not supplied, it will be requested.

   /delete:        Delete a user name and password from the list.
                   If TargetName is specified, that entry will be deleted.
                   If /ras is specified, the stored remote access entry will be deleted.

   /list           Display the list of stored user names and credentials.
                   If TargetName is not specified, all stored user names and credentials will be listed.

If more than one smart card is found, cmdkey will prompt the user to specify which one to use.

Once stored, passwords are not displayed.

Examples:


Display a list of stored user names and credentials:

cmdkey /list

Add a user name and password for user Kate to access computer Server01 with the password passme, type:

cmdkey /add:server01 /user:Kate /pass:passme

Add a user name for user Kate to access computer Server01 and prompt for the password whenever Server01 is accessed:

cmdkey /add:server01 /user:Kate

Delete the stored credential for remote access:

cmdkey /delete /ras

Delete the stored credential for Server01:

cmdkey /delete:Server01

“The stupid neither forgive nor forget, the naive forgive and forget, the wise forgive but do not forget” ~ Thomas Szasz (The second sin)

Related:

CIPHER - Encrypt or Decrypt files/folders


© Copyright SS64.com 1999-2013
Some rights reserved