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:
...





Source: http://feeds.macosxhints.com/click.phdo?i=a37c239c0b38fce040b37bef6c05fd0c
No comments:
Post a Comment