Script adding credentials to the Windows Vault
We have Windows 7 devices on one domain, and some users need regular access to files on another, independant domain. We can add credentials manually using control userpasswords2>Advanced>Manage Passwords>Add a windows credential" however we are looking for a way to script it so we can add the credentials to the user's "vault" to allow logon scripts to automatically connect to the servers on the other domain. Thanks, Steve
November 19th, 2009 2:44am

I am looking for this as well.. Did you ever get this working?thanks,Larry
Free Windows Admin Tool Kit Click here and download it now
February 2nd, 2010 7:34pm

I am also looking for a way to do this. I have built a script that adds printers, network drives, and wireless access to our students. Their computers are not on a domain. I can initially connect them with the credentials they type in. However, when they reboot, they have to type them in again. I would really like a way to streamline this process by storing the credentials for them as well. This would also be a handy feature for many other scripting projects I am sure. Does anybody know of a way to do this?
March 3rd, 2010 8:54pm

Do anyone found a solution for this problem? Regards DanielDaniel Schmitz
Free Windows Admin Tool Kit Click here and download it now
July 26th, 2010 10:22am

Found a solution... you can use cmdkey to add credentials from within a .bat or .cmd script. cmdkey /? Creates, displays, and deletes stored user names and passwords. The syntax of this command is: CMDKEY [{/add | /generic}:targetname {/smartcard | /user:username {/pass{:passw rd}}} | /delete{:targetname | /ras} | /list{:targetname}] Examples: To list available credentials: cmdkey /list cmdkey /list:targetname To create domain credentials: cmdkey /add:targetname /user:username /pass:password cmdkey /add:targetname /user:username /pass cmdkey /add:targetname /user:username cmdkey /add:targetname /smartcard To create generic credentials: The /add switch may be replaced by /generic to create generic credentials To delete existing credentials: cmdkey /delete:targetname To delete RAS credentials: cmdkey /delete /ras
September 3rd, 2010 5:28am

Do you know if there exists an option for adding a certificate with cmdkey.exe ? I don't see any switch parameter ;( http://social.msdn.microsoft.com/Forums/en-US/securityde/thread/ea4b8ad6-26ff-4a3c-84ed-f4d706b5f7bc Regards DanielDaniel Schmitz
Free Windows Admin Tool Kit Click here and download it now
September 3rd, 2010 9:55am

Nice.. thanks for the followup..
September 3rd, 2010 4:27pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics