purum
purum

Reputation: 323

run .bat on remote computer from .net

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? Or any other solutions?

Upvotes: 0

Views: 600

Answers (2)

Richard Nienaber
Richard Nienaber

Reputation: 10564

Two options come to mind:

  1. Powershell
  2. PsExec

Upvotes: 2

Felice Pollano
Felice Pollano

Reputation: 33252

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.

Upvotes: 0

Related Questions