winexe というコマンド Linux側から、Windowsにコマンド実行をさせるコマンドです。認証や実行はSambaと同じやり方でやってます。winexec 関数ではないです。 winexe コマンドでwindowsに仕事をさせる winexe -U takuya //192.168.11.111 "cmd.exe " winexec でWindowsにコマンドを流し込んだ結果 ipconfig winexe のインストール OSX なら brew で。 brew install winexe winexe でつなぐための準備 さすがに、コマンドをいくらでも実行できるとセキュリティ上の問題があるのでWin7では機能が無効化されている。 HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System
![Windowsにコマンドを流し込む(その他の方法 - それマグで!](https://cdn-ak-scissors.b.st-hatena.com/image/square/abfffeb6f25811b4d501d02eba4abe2c921d6b62/height=288;version=1;width=512/http%3A%2F%2Fcdn-ak.f.st-hatena.com%2Fimages%2Ffotolife%2Ft%2Ftakuya_1st%2F20140803%2F20140803165509.jpg)