Welcome to MSDN Blogs Sign in | Join | Help

Listing all the COM automation PROGIDs

<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!

Enjoy!
Jeffrey Snover
Windows PowerShell Architect

 

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

Published Thursday, June 29, 2006 5:42 PM by PowerShellTeam
Filed under: ,

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# Use Powershell to add virtual machines to Virtual Server

Back to a topic that I know I won't get dinged on.&amp;nbsp; :)
I was playing arround with the list of available...
Wednesday, July 05, 2006 2:35 AM by Tim Mintner

# Revisiting: Listing all the COM automation PROGIDs

In the blog entry Listing all the COM automation PROGIDs http://blogs.msdn.com/powershell/archive/2006/06/29/650913.aspx&amp;nbsp;....
Thursday, July 06, 2006 1:02 PM by Windows PowerShell

# re: Listing all the COM automation PROGIDs

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.

Thursday, July 27, 2006 9:07 AM by Chris J

# Revisiting: Listing all the COM automation PROGIDs

In the blog entry Listing all the COM automation PROGIDs http://blogs.msdn.com/powershell/archive/2006/06/29/650913.aspx

Monday, January 05, 2009 2:31 AM by Windows PowerShell Blog

Leave a Comment

(required) 
required 
(required) 
 
Page view tracker