This
command line argument doesn??™t allow wildcard characters, so you can only use it to list one
credential at a time.
Creating
Creates a new domain or generic credential based on a username and password. Use the /add
command line switch to create domain credentials and the /generic command line switch to
create generic credentials. This mode uses the following syntax:
cmdkey /add:targetname /user:username /pass:password
cmdkey /add:targetname /user:username /pass
cmdkey /add:targetname /user:username
cmdkey /add:targetname /smartcard
cmdkey /generic:targetname /user:username /pass:password
cmdkey /generic:targetname /user:username /pass
cmdkey /generic:targetname /user:username
cmdkey /generic:targetname /smartcard
The following list describes each of the command line arguments.
/add Creates a domain credential.
/generic Creates a generic credential.
targetname Defines a target credential. You use the name of the credential as the target. This
command line argument doesn??™t allow wildcard characters, so you can only use it to list one credential
at a time.
130 CHAPTER 5 CREATING CMD AND BAT FILES
/user:username Specifies the username used for login purposes.
Pages:
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356