Wednesday, 31 August 2011

Running winexe on the Mac

If you are a Unix admin and also have to maintain Windows servers, you will find winexe a must command line utility to have in your arsenal.


Until recently I have been able to do this only on Linux boxes. I have compiled it and it works great however, on Mac OS X I have not had any luck until a few days I came across this site. There are also links provided to the winexe binary packages here.

So, once you install it, the usage is simple:

Here is a quick exemple.

To get the route table on the Windows machine (using your correct IP address and other appropriate information):

winexe -U YOURDOMAIN/YourAccount%YourPassword //172.16.2.xxx 'route print'

If you want to start a Windows service:

winexe -U YOURDOMAIN/YourAccount%YourPassword //172.16.2.xxx 'net start "Service Name"'

Or to kill a Windows service:

...

Add to digg Add to Reddit Add to Slashdot Email this Article Add to StumbleUpon

Source: http://feeds.macosxhints.com/click.phdo?i=a37c239c0b38fce040b37bef6c05fd0c

applecare apple news rumors apple newspaper macworld expo

No comments:

Post a Comment