我尝试从 Windows 7 到 Windows 10 PRO(不是预览版)使用 PSEXEC。
PsExec.exe -i 1 -u myuser -p mypass \\xxx.xxx.xxx.xxx cmd
Run Code Online (Sandbox Code Playgroud)
输出
Error communicating with PsExec service on xxx.xxx.xxx.xxx
No process is on the other end of the pipe.
Run Code Online (Sandbox Code Playgroud)
我的远程计算机上只有一个管理员用户 (myuser)。
我可以看到服务 PSEXESVC.exe 正在创建并正在运行。我停下来,再试一次,结果还是一样。
*我在 XP、Win7、Win8、Win10Preview 上使用相同的命令和相同的配置(禁用防火墙,LocalAccountTokenFilterPolicy 为 1),没有问题。