如何将命令从 Windows 分派到 Windows

Pau*_*han 12 remote-access windows

如何从 Windows 计算机编写其他 Windows 计算机上的远程命令脚本?

例如,在 *nix-*nix 网络上,我可以做ssh wu@otherbox foo,只要密钥设置正确,foo运行并且 ssh 客户端返回返回代码。

jft*_*uga 22

psexec - http://technet.microsoft.com/en-us/sysinternals/bb897553

PsExec 是一种轻量级的 telnet 替代品,可让您在其他系统上执行进程,完成与控制台应用程序的完全交互,而无需手动安装客户端软件。

另一种选择是编写一个 powershell 或 vbscript(使用 WMI)。


Rob*_*obW 6

WMI 命令行工具是一个不错的选择:

wmic.exe /node:somecomputer process call create "c:\bin\uphclean\uphclean.exe -install"
Run Code Online (Sandbox Code Playgroud)


DKN*_*LES 5

您应该查看PSExec实用程序。