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:
- Powershell
- 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.
精彩评论