可能关注的对象,
提前感谢您抽出时间阅读本文。
Thanks in advance for your time in reading this post.
我想要作为我的CI发布阶段的一部分,在远程服务器(而不是域)上执行PowerShell脚本。
I'm wanting to execute a PowerShell script on a remote server (not on domain) as part of my C.I.'s Release phase.
我能够在目标计算机上添加"PowerShell"。任务到发布,我可以让它工作,但只有在关注此网站后,在远程计算机上设置自签名证书,然后将其导入构建服务器:
I am able to add the "PowerShell on Target Machines" task to the release and I can get it to work but only after following this website to setup a Self-Signed Certificate on the remote machine and then import it into the build server:
https: //4sysops/archives/powershell-remoting-over-https-with-a-self-signed-ssl-certificate /
4sysops/archives/powershell-remoting-over-https-with-a-self-signed-ssl-certificate/
这似乎太过分了在每个服务器上只需执行一个小型PowerShell脚本。
This simply seems like way too much to do on every single server to simply execute a small PowerShell script.
我的问题:在远程计算机上停止/启动某些IIS站点和/或服务的最简单方法是什么TFS发布? 如果是"目标计算机上的PowerShell"是一个简单的解决方案那么为什么我必须走到极端,在我推送的每个盒子上设置自签式证书? 我错过了什么并且过于复杂了吗?
My question: what is the easiest way to Stop/Start some IIS Sites and/or Services on a remote machine as part of a TFS Release? If "PowerShell on Target Machines" is a simple solution then why do I have to go to the extremes to setup a Self-Signed Certificate on every box I push to? Am I missing something and over-complicating this?
非常感谢提前,
John
推荐答案
嗨mozzarella,
Hi mozzarella,
有一个扩展来停止/启动IIS网站:
There is an extension to stop/start IIS Website:
marketplace.visualstudio/items?itemName=Lemoinek.IISutilities
您可以下载并安装到您的收藏中。然后你可以找到"IIS实用程序"。 Utility选项卡中的任务。
You could download it and install to your collection. Then you could find "IIS utilities" task in the Utility tab.
最好的问候
更多推荐
释放任务以在远程计算机上运行脚本
发布评论