CLeWMI (pronounced "clue me") is a Command Line WMI query tool. It's written in perl, for Windows. It allows dynamic querying of WMI from a command line. Works on Window NT, 2000, 2003, and XP. Stand alone executable available.
small and efficient and gets the job done.