user-interfaceremote-accesswindows-serverpsexecwinexe

Winexe command gives returns irrelevant info and doesn't execute


Hey guys I am trying to use winexe and execute interactive gui programs from my linux machine to my windows and this syntax is just giving me the same thing like I write

winexe --help

Why is that so? I read that on this post: How to activate programs on windows from Linux machine

If I use --system and --interactive=1 in my command, I will be able to run gui programs on my target machine

winexe --system -U "work/user%pw043" --interactive=1 //server.company.co --system "C:\Utility\prog.exe"

So, what is the proper syntax to making this work? I googled all over internet and the resources on this topic are really scarce.


Solution

  • I managed to run executables using combination of winexe and psexec64

    winexe -U DOMAIN/user%password //SERVER.company.co "psexec64 -u DOMAIN\user -p password -accepteula -nobanner -h -i 2 C:\windows\notepad.exe