cmdkey | new in WS2003 |
Manages stored usernames and passwords.
cmdkey /add:TargetName /user:UserName /pass:Password cmdkey /add:TargetName /smartcard cmdkey /generic:TargetName /user:UserName /pass:Password cmdkey /delete{:TargetName | /ras}] cmdkey /list[:TargetName]
/add:TargetName /user:UserName /pass:Password
Adds the specified username and password for the specified computer or domain to the stored credentials list
/add:TargetName /smartcard
Retrieves credentials from a smart card and adds them to the stored credentials list
/generic:TargetName /user:UserName /pass:Password
Adds the specified generic credentials (not associated with a specific computer or domain) to the stored credentials list
/delete{:TargetName | /ras}
Deletes the specified username and password or remote access entry from the stored credentials list
/list:TargetName
Lists the stored credentials for the specified computer or domain (if TargetName is omitted, all stored credentials are listed)
Add credentials for Bob Smith to the stored credentials list in the
mtit.local domain:
cmdkey /add:mtit.local /user:bsmith@mtit.local /pass:password CMDKEY: Credential added successfully.
Display list of stored credentials:
cmdkey /list Currently stored credentials: Target: mtit.local Type: Domain Password User: bsmith@mtit.local
Delete stored credentials for
mtit.local domain:
cmdkey /del:mtit.local CMDKEY: Credential deleted successfully.
Verify the result:
cmdkey /list Currently stored credentials: * NONE *
Add credentials for Bob Smith to the stored credentials list on the standalone server named
esrv230d :
cmdkey /add:esrv230d /user:esrv230d\bsmith /pass:password CMDKEY: Credential added successfully.
You can also manage stored credentials from the GUI using the Stored usernames and Passwords utility in the Control Panel.
Logon