简体   繁体   English

向witadmin提供用户名和密码

[英]Supply Username and Password to witadmin

Using witadmin I'm trying to delete a work item on a TFS in a different domain . 我正在使用witadmin尝试删除其他域中 TFS上的工作项。 I therefore use a login that is different from my Windows login, for which I'm asked when opening the web interface. 因此,我使用的登录名与Windows登录名不同,在打开Web界面时会被询问。

However, witadmin fails with the following message, not prompting for username and password: 但是, witadmin失败,并显示以下消息,不提示输入用户名和密码:

Unable to destroy work item(s) 1. TF237090: Does not exist or access is denied. 无法销毁工作项1. TF237090:不存在或访问被拒绝。

Is there a way to supply credentials as arguments or explicitly make witadmin prompt for credentials? 有没有办法提供凭据作为参数或显式使witadmin提示输入凭据?

What solved my problem is the Credential Manager , which is in Control Panel > User Accounts > Manage Your Credentials . 解决我的问题的是凭据管理器 ,它位于“ 控制面板”>“用户帐户”>“管理您的凭据”中 I added an item to Windows Credentials containing containing the username and password I need for the TFS. 我在Windows凭据中添加了一个项目,其中包含TFS所需的用户名和密码。

It doesn't make witadmin ask, but it takes these credentials. 它不会让witadmin询问,但是会使用这些凭据。

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

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