Just download the WMI client provided for “generic linux” in our ‘downloads’ section (32bit) it works perfectly on Ubuntu 9.04, Fedora and other GNU/Linux distros because it’s a static compiled binary.
http://sourceforge.net/project/downloading.php?group_id=155200&filename=wmi_client_linux.tar.gz&a=54919695
If you have problems running it or want to compile it yourself, you need to obtain sources from the latest version of Samba 4.x (3.x versions don’t have WMI or WinExe support). After compiling and linking you will get the ‘WMic’ tool. Do this only if the provided binaries (see above) don’t work for you.