cmdkey


cmdkey new in WS2003

Manages stored usernames and passwords.

Syntax

 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   ] 

Options

/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)

Examples

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. 

Notes

You can also manage stored credentials from the GUI using the Stored usernames and Passwords utility in the Control Panel.

See Also

Logon



Windows Server 2003 in a Nutshell
Windows Server 2003 in a Nutshell
ISBN: 0596004044
EAN: 2147483647
Year: 2003
Pages: 415
Authors: Mitch Tulloch

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net