简体   繁体   English

检查是否为tf.exe缓存凭据

[英]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? 如何使用tf.exe检查我的凭据是否已缓存到特定服务器? I am trying to do slight automation for tfs get and workspace/workfold configuration. 我正在尝试对tfs get和工作区/工作区配置进行一些自动化。 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. 假定大多数机器已经缓存了凭据,但是我希望能够事先进行仔细检查,如果没有,则会在powershell中引发错误。

Thank you, 谢谢,

Derongan Derongan

Try using vaultcmd.exe eg: 尝试使用vaultcmd.exe,例如:

vaultcmd /listcreds:"Windows Credentials" /all

You could run that through a Where-Object command looking for a string that matches the TFS server name. 您可以通过Where-Object命令运行该命令,以查找与TFS服务器名称匹配的字符串。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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