Automating the world one-liner at a time…
<edited 7/2/2006 to add categories and PSMDTAGs>
Windows PowerShell allows you to program against COM automation. The typical way to do this is :
$x = new-ojbect -ComObject <PROGID>
The question then is, how do I know what progids I can use. Here are there 3 answers
I'm lucky enough to be in category 3 so I'll share a one-liner based upon Riedwaan's recent email.
dir REGISTRY::HKEY_CLASSES_ROOT\CLSID -include PROGID -recurse | foreach {$_.GetValue("")}
Thanks Riedwaan!
Enjoy!Jeffrey SnoverWindows PowerShell Architect
PSMDTAG:FAQ: How do I know what COM progids I can use?PSMDTAG:TYPE:COM progids
In the blog entry Listing all the COM automation PROGIDs http://blogs.msdn.com/powershell/archive/2006/06/29/650913.aspx