CMDKEY
This page is from Microsoft
Updated: January 21, 2005
Syntax
Parameters
Remarks
- If more than one smart card is found on the system when the /smartcard option is used, cmdkey will display information about all available smart cards and then prompt the user to specify which one to use.
- Passwords will not be displayed once they are stored.
Examples
cmdkey /list
To use cmdkey to add a user name and password for user Mikedan to access computer Server01 with the password Kleo, type:
cmdkey /add:server /user:mikedan /pass:Kleo
To use cmdkey to add a user name and password for user Mikedan to access computer Server01 and prompt for the password whenever Server01 is accessed, type:
cmdkey /add:server /user:mikedan
To delete the credential that remote access has stored, type:
cmdkey /delete /ras
Formatting legend
Format | Meaning |
Italic | Information that the user must supply |
Bold | Elements that the user must type exactly as shown |
Ellipsis (...) | Parameter that can be repeated several times in a command line |
Between brackets ([]) | Optional items |
Between braces ({}); choices separated by pipe (|). Example: {even|odd} | Set of choices from which the user must choose only one |
Courier font | Code or program output |