Automating the world one-liner at a time…
MOW has done it again with an excellent example of a PowerShell script which does some chewy WMI processing and takes advantage of the PowerShell capabilities. http://mow001.blogspot.com/2006/05/powershell-export-shares-and-security.html
Quite a few of the current WMI examples are really trivial VBScripts using PowerShell constructs. There is nothing wrong with that.
Check it out and if you aren't already following MOW's blog - you should. It always as great stuff on it.
Jeffrey SnoverPowerShell ArchitectPSMDTAG:TYPE:WMI: