0

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

Derongan
  • 790
  • 6
  • 24

1 Answers1

1

Try using vaultcmd.exe e.g.:

vaultcmd /listcreds:"Windows Credentials" /all

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

Keith Hill
  • 194,368
  • 42
  • 353
  • 369