Are there existing solutions for remotely executing commands on a Windows server natively? psexec.exe is not an option since a Java application must be cross platform.
Even a pre-existing solution using Java RM is sufficient.
I am currently using the SSH client library for ssh via java on a Windows server running the cygwin SSH daemon. Unfortunately, the SSH daemon has some problems when it comes to quoting commands that are part of the CMD shell (unlike bash).
source
share