开发者

run .bat on remote computer from .net

开发者 https://www.devze.com 2023-02-13 19:18 出处:网络
What is the best way to run .bat file from .NET on remote computer which is not in my local network. It should be secure connection, so the way I\'m thinking about is using SSH. Does Windows built in

What is the best way to run .bat file from .NET on remote computer which is not in my local network. It should be secure connection, so the way I'm thinking about is using SSH. Does Windows built in Telnet provide security?开发者_StackOverflow中文版 Or any other solutions?


Two options come to mind:

  1. Powershell
  2. PsExec


Create a secured web application on the target machine and implement a command launching the bat. Avoid a "can launch anything" solution even with a secured channel.

0

精彩评论

暂无评论...
验证码 换一张
取 消