简体   繁体   English

是否可以使用 windows rdp 自动运行脚本

[英]Is it possible to use windows rdp to automatically running scripts

I need to run a script on a large number of windows VMs.我需要在大量 Windows VM 上运行脚本。 psremoting or WMI remoting would be ideal for this, but those connections are blocked by the firewall. psremoting 或 WMI 远程处理将是理想的,但这些连接被防火墙阻止。 However the firewall does enable RDP connections.但是,防火墙确实启用了 RDP 连接。

It would be possible to remote desktop to each VM individually and run the script, but I want to automate this.可以单独远程桌面到每个虚拟机并运行脚本,但我想自动执行此操作。 Is there anyway to do so through RDP?反正有没有通过RDP这样做?

I'm not sure If this helps you, But if you are using Hyper-V and you have admin access to Hyper-V host, you could try PowerShell Direct :我不确定这是否对您有帮助,但是如果您使用的是 Hyper-V 并且您对 Hyper-V 主机具有管理员访问权限,则可以尝试 PowerShell Direct:

https://docs.microsoft.com/en-us/windows-server/virtualization/hyper-v/manage/manage-windows-virtual-machines-with-powershell-direct https://docs.microsoft.com/en-us/windows-server/virtualization/hyper-v/manage/manage-windows-virtual-machines-with-powershell-direct

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM