【问题标题】:How to get fix "You are not authorized to access" accessing VS Team Services如何修复“您无权访问”访问 VS Team Services
【发布时间】:2016-06-09 23:34:38
【问题描述】:

我可以打开 Internet Explorer 并正常登录。

凭据保存在凭据管理器中。

尝试访问任何 tf.exe 命令都会导致 TF30063 错误。

我没有在这台机器上安装 VS。

有什么建议可以尝试吗?

更新:
这是我为解决此错误而采取的步骤。

  • 通过 IE 登录 VS Team Services
  • 在命令提示符处:


C:\>tf.exe status /collection:https://xxxxx.visualstudio.com/DefaultCollection
C:\>tf.exe workspaces /collection:https://xxxxx.visualstudio.com
C:\>tf.exe workspace /new /collection:https://xxxxx.visualstudio.com

我也尝试了其他几个,但每个人都返回相同的未经授权的错误。

这些命令都可以在使用相同凭据连接到相同 tfs 存储库的另一台服务器上运行,这让我相信这是 IE 和/或互联网安全选项中的东西。

【问题讨论】:

  • 你尝试了什么命令?
  • @Cece-MSFT 我已经尝试过 status、get、workspaces
  • 能否分享重现此问题的详细步骤?
  • 运行“tf status”命令时是否弹出登录对话框?

标签: tfs azure-devops tf-cli


【解决方案1】:

以添加文件和文件夹到版本控制为例,可以在命令中指定用户账号/login:username,[password]

tf add itemspec [/lock:(none|checkin|checkout)] [/encoding:filetype] 
[/noprompt] [/recursive] [/noignore] [/login:username,[password]] 

更多命令,见:https://www.visualstudio.com/en-us/docs/tfvc/use-team-foundation-version-control-commands

【讨论】:

  • 由于你的机器上没有安装VS,你安装了Team Explorer吗?尝试清理缓存文件夹 C:\Users\username\AppData\Local\Microsoft\Team Foundation\x.0\Cache,在凭据管理器中删除凭据,并删除浏览器的历史记录。同时禁用防火墙和防病毒软件。然后指定 /login:username 看看是否可以访问 VSTS。
  • 你能给我看一些示例而不是语法吗
【解决方案2】:

要使用 tf.exe 命令,您需要 安装 Visual Studio 或 Team Explorer。更多详情请参考Command-line tools for TFS

【讨论】:

    猜你喜欢
    • 2018-05-24
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-03-31
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多