On our home network we have one Windows 7 only PC and several computers with Ubuntu 13.04 (dual boot with backup Windows 7 for programs that can't be run using wine).
We want to be able to send commands (like msg
or shutdown
etc.) to that Windows PC (and if possible we want that Windows 7 PC to be able to send commands to the Linux PCs).
How do I do this?
You reminded me about winexe:
Download the tarball from the project page at http://sourceforge.net/projects/winexe/
I'm using a hot link for illustrative propose.
Untar the file:
Configure it:
Make it:
Then you can either install it, or running it with
./winexe
:It follows the same syntax as
psexec
Microsoft tool.If you install cygwin on windows machines, and also install sshd, then you will be able to give any remote commands through ssh. From windows to linux you can give remote commands through putty (ssh).
Here are instructions for installation of Winexe, as summarised from http://www.aldeid.com/wiki/Winexe by Akisame (the quoted code snippets are copied verbatim from the original source):
For the people from the future I give thee the prerequisites (I had them except autoconf but it's a common problem so I'll just give them all).
Next you use the
autogen.sh
from source4 and follow the instructions from there on. When you're finished run(this will take some time)
You should get "Version 4.0.0alpha11-GIT-UNKNOWN"
From Ubuntu to Windows you should be able to do this by using smbclient.
From Windows to Ubuntu you can use PuTTY.