更新时间:2022-12-22 22:52:47
您可以使用 PsExec ,它是微软的SysInternals的一部分。因此,您可以使用c#创建一个运行PsExec命令的本地进程。
You can run a program on another computer using PsExec, which is part of Microsoft's SysInternals. Therefore, you could use c# to create a local process that runs the PsExec command.
或者,您可以使用 Windows PowerShell远程处理在另一台计算机上运行PowerShell脚本。再次,这可以使用c#启动。
Alternatively, you can use Windows PowerShell Remoting to run a powershell script on another computer. Once again, this could be kicked off using c#.
我想你也可以用WMI或甚至RDP。
I think you can also do it with WMI or perhaps even RDP.