Listing all the COM automation PROGIDs

  • Comments 5

<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

  1. You'll know because someone (an article, a script, a blog entry, a friend) gave it to you.
  2. Divine inspiration
  3. Be on the same Mailing list as Riedwaan Bassadien . 

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!

Jeffrey Snover
Windows PowerShell Architect


PSMDTAG:FAQ: How do I know what COM progids I can use?

Leave a Comment
  • Please add 6 and 6 and type the answer here:
  • Post
  • Back to a topic that I know I won't get dinged on.&amp;nbsp; :)
    I was playing arround with the list of available...
  • In the blog entry Listing all the COM automation PROGIDs;nbsp;....
  • Is there any way to query (and maybe register? Query is more important though) the COM+ database for lists of applications, components in applications, and properties set against components?

    I've done a lot of googling on this and it's eluded to that it can be done, but I've never seen examples, and I've not been able to get any meaningful information.

  • In the blog entry Listing all the COM automation PROGIDs

  • I have portable software. I saw in its help that it supports COM, How can I use it ?

Page 1 of 1 (5 items)

Listing all the COM automation PROGIDs