Friday, May 3, 2024
8
rated 0 times [  8] [ 0]  / answers: 1 / hits: 7045  / 1 Year ago, thu, february 9, 2023, 3:19:41

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?


More From » command-line

 Answers
3

You reminded me about winexe:



Download the tarball from the project page at http://sourceforge.net/projects/winexe/



wget "http://downloads.sourceforge.net/project/winexe/winexe-1.00.tar.gz?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fwinexe%2F&ts=1377024055&use_mirror=hivelocity"


I'm using a hot link for illustrative propose.




  1. Untar the file:



    tar zxf winexe*.tar.gz
    cd winexe*

  2. Configure it:



    ./autogen.sh
    ./configure

  3. Make it:



    make



Then you can either install it, or running it with ./winexe:



./winexe  -U "Administrator" //some-pc 'shutdown.exe'


It follows the same syntax as psexec Microsoft tool.


[#29864] Thursday, February 9, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ticrew

Total Points: 190
Total Questions: 111
Total Answers: 99

Location: Fiji
Member since Wed, Jul 14, 2021
3 Years ago
;