简体   繁体   中英

Check if credentials are cached for tf.exe

How would I check if my credentials are already cached for a specific server using tf.exe? I am trying to do slight automation for tfs get and workspace/workfold configuration. The assumption is that most machines already have the credentials cached, but I want to be able to double check beforehand, and throw an error in powershell if they are not.

Thank you,

Derongan

Try using vaultcmd.exe eg:

vaultcmd /listcreds:"Windows Credentials" /all

You could run that through a Where-Object command looking for a string that matches the TFS server name.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM