Paul,At what version did Samba4 start including winexe?
http://eol.ovh.org/winexe/ has direction for building winexe, but I'm not finding winexe as part of the samba4 in Ubuntu 12.04.
On Thu, Jan 17, 2013 at 11:52 AM, Chris McClimans < " target="_blank"> > wrote:
winexe on Linux and OSXSeems like we could do knife bootstrap windows exec and use different backends.
PsExec on windows
The requirement of a full samba4 install is something we should noodle around.
Are there static linked binaries for OSX and Linux?On Thu, Jan 17, 2013 at 3:38 AM, Paul Morton - BIA < " target="_blank"> > wrote:
Chris - winexe ships as part of samba 4 and can run on linux or osx. It is synonymous with psexec on windows.Personally, with all of the quirks of winrm and powershell 3 constantly dumping due to memory issues, I am wondering if winexe is just the way to go for all remote shell operations...PThe ideal scenario would give us the ability to run commands via the RDP procotol from plain ruby (no X or Linux required).I was wondering if anyone has any suggestions or has seen any ruby gems or libraries that we could use to make something like this cross-platform.I found an interesting from blog entry from 2008*[1] that suggested using the rdesktop executable (on linux) to run commands/scripts.winrm is disabled by default for many windows installs, including cloud providers such as Azure.I'm contemplating a way around this limitation by either finding a way to turn on winrm, or just executing commands via RDP instead.
rdesktop -r disk:local="/tmp/dir/" my.new.server -s "cmd.exe /K net use x: \\\\tsclient\local & x:\setupwinrm.bat & shutdown /t 0 /r"
However that obviously requires shelling out to run a binary on Linux that requires the presence of an X server.
Then we could do something like:knife bootstrap windows rdp my.new.server
Archive powered by MHonArc 2.6.16.