释放任务以在远程计算机上运行脚本

编程入门 行业动态 更新时间:2024-10-26 14:28:46
本文介绍了释放任务以在远程计算机上运行脚本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

可能关注的对象,

提前感谢您抽出时间阅读本文。

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.

最好的问候

更多推荐

释放任务以在远程计算机上运行脚本

本文发布于:2023-11-28 15:50:34,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1643021.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:机上   脚本

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!