Linux is easy with ssh to execute a command on another system. But if the other system is Windows not allways ssh is possible. What is the best way on Ubuntu 19 to solve this problem? I know winexe or psexec but I dont find a way to use or install it. And samba don't have the possibility to execute a windows command. Can an expert give me an answer to this problem? I say thanks a lot just now.
You can try to use powershell remotely, but it's not the classic cmd. In ubuntu 19.04 you can install powershell with snap. If you are interested, search commands of powershell and look this link to execute remotely powersell.