Remote execute windows command from Ubuntu (psexec for linux)

Hey all, just a quickly as this took a little googling.

If you need winexe to remote administer a windows box..

Grab a package from here: https://launchpad.net/~jdthood/+archive/winexe/+packages

Install it

Finally open a terminal and try:

winexe -U domain\username //machinename ‘cmd’

Also you may want to hunt down wmic (wmi-client), its also not in the repos, but is available to be compiled from zenoss.

If I find the guide for this again I’ll make another post about it.

Hope it helps!

Published: September 07 2011

  • category:
blog comments powered by Disqus