我帮助我的同事编写了一个脚本,该脚本对服务器的文件和结构进行了更改,现在我的同事希望我添加一个网站链接,以便他可以从任何地方运行该脚本。这对我来说听起来不是一个好主意,但我真的无法向他提供足够的细节来说服他放弃。
我认为在网络前端授予对该脚本的访问权限是一个坏主意,这是完全错误的吗? 如果这不是一个坏主意,你会建议我从哪里开始?我应该注意哪些安全措施? 如果这是一个坏主意,你会如何说服他放弃呢? (他的级别比我高一点,我的老板希望我帮助他)
最佳答案
对我来说听起来是个坏主意。
我认为,如果您改为设置 PowerShell Web Access,您会过得更好并获得所有好处:
Windows PowerShell® Web Access, first introduced in Windows Server® 2012, acts as a Windows PowerShell gateway, providing a web-based Windows PowerShell console that is targeted at a remote computer. It enables IT Pros to run Windows PowerShell commands and scripts from a Windows PowerShell console in a web browser, with no Windows PowerShell, remote management software, or browser plug-in installation necessary on the client device. All that is required to run the web-based Windows PowerShell console is a properly-configured Windows PowerShell Web Access gateway, and a client device browser that supports JavaScript® and accepts cookies.
关于javascript - 通过网站上的链接在服务器上运行 powershell 是个好主意吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19188987/