星期二, 6月 10, 2008

用GNU/Linux遠端管理MS Windows電腦

winexe是GNU/Linux下類似psexec的工具,可以讓被控端在不開啟telnet service或安裝sshd的情況下從遠端呼叫被控執行程式或取得被控端的command shell。
常用的執行範例如下
$ winexe --uninstall --reinstall --interactive=1 --system -U administrator //pc001 cmd

--uninstall Uninstall winexe service after
remote execution
--reinstall Reinstall winexe service before
remote execution
--system Use SYSTEM account
--runas=[DOMAIN\]USERNAME%PASSWORD Run as user (BEWARE: password is
sent in cleartext over net)
--interactive=INT Desktop interaction: 0 -
disallow, 1 - allow. If you
allow use also --system switch
(Win requirement). Vista do not
support this option.

沒有留言: