【发布时间】:2012-12-23 21:48:37
【问题描述】:
我正在尝试使用 PowerShell 3.0 从我的 TeamCity 构建服务器下载文件。我已将 TeamCity 配置为使用 NTLM 身份验证,但我无法直接下载文件并重定向到登录。
我正在尝试使用以下 PowerShell 代码下载文件。
$artifacts = "http://teamcity/repository/download/bt1/.lastSuccessful/%7Bbuild.number%7D.zip"
Invoke-WebRequest -Uri $artifacts -UseDefaultCredentials
我对请求的响应是重定向到登录页面。
【问题讨论】:
标签: powershell teamcity ntlm powershell-3.0 teamcity-7.0