How to execute Windows commands remotely from a Linux Apache PHP server?

2.1k Views Asked by At

I have a Linux (Ubuntu, or maybe CentOS) server that runs Apache and PHP.

Whenever needed, I should remotely connect to a Windows Server, execute some Windows commands, and return the result.

Please introduce a tool (or a way (if no tool is required)) for that.

I saw psexec that is good if my web server is Windows (while its Linux right now). Also I found winexe, but not any tutorial, or even a simple example to call from PHP and have a successful connection to remote Windows Server.

0

There are 0 best solutions below