Tech, Gadgets, Photography, Social Media and Poor Spelling
I’ve had a requirement to produce a script which accessed about 4 windows PC servers (2003/2008 on a Domain from a bash script to obtain hard disk sizes from each machine, this can be done using SSH howeverthat involves getting SSH server installed on all the remote machines, not something we wanted to do at the time. This handy command unfortunatly is a bit buggy so not in the Ubuntu repos any more, however for the purpose I needed it performed very well.
To run windows cmd from linux box, there is one tool you could use, which is winexe. You can download the installer from here. There are 2 ways to install this tool:
install -s wmi/Samba/source/bin/winexe /usr/local/bin/winexe
Microsoft Windows [Version 5.2.3790]
(C) Copyright 1985-2003 Microsoft Corp.