发布任务 - 打开网址 [英] Release task - open url
问题描述
我需要添加power shell脚本来打开URL并在发布时将其作为任务执行,
I need to add power shell script to open the URL and execute it in release as a task,
编写了从VSTS打开url的代码,但没有确定它打开了哪个浏览器并且还需要传递creadentials,
have written the code for opening the url from VSTS , but not sure about which browser it opens and also need to pass creadentials,
$ IE = new-object -com internetexplorer.application
$ IE.navigate2( " url ")
$ IE。 visible = $ true
$IE=new-object -com internetexplorer.application
$IE.navigate2("url")
$IE.visible=$true
请建议是否有任何解决方案。谢谢。
please suggest if any solution. Thanks.
推荐答案
Hi Suganthi Prak shiva,
Hi Suganthi Prak shiva,
感谢您发布她。
上面的代码片段用于使用IE浏览器打开网址。您能否告诉我您使用Windows身份验证或其他类型的身份验证打开网址?
The code snippet above used to open the url with IE browser. Could you please tell me you open the url using Windows Authentication or other type of authentication?
这篇关于发布任务 - 打开网址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!