Check out the excellent .NET show episode featuring the Scripting Guys on WMI scripting. The script center has a new article on WMI scripting in Vista, as well as great Windows PowerShell scripts.
Here is a snip of the transcript to pique your interest: