Page 1 of 1 1
Topic Options
#127870 - 2004-10-13 09:39 PM List COM+ Application under Component Services
Anonymous
Unregistered


Hello,

I need to write a script that list all COM+ applications under the Adminitrator Tools->Component Services and the dll it is using.

Any suggestion on how to do this? I would like to do it without using WMI, as some of my servers might not have it installed. I checked the registry but could not find anything meaningful.

Thanks any any help.

graymen2


Top
#127871 - 2004-10-14 02:03 PM Re: List COM+ Application under Component Services
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
I've been doing a tiny bit of research on this. Have poked around in the registry and used a tool called OLEVIEW, which can list-out COM objects by category etc ... and can confirm your findings - there doesn't seem to be any rythme or reason to what gets listed in the component snap-in. Not sure what the criteria is honestly. Its quite possible that there is no criteria, but unlikely ... anyone ?
Top
#127872 - 2004-10-14 06:08 PM Re: List COM+ Application under Component Services
maciep Offline
Korg Regular
*****

Registered: 2002-06-14
Posts: 947
Loc: Pittsburgh
I haven't played around with it but accidently stumbled across the dll (went to com folder instead of ccm). Anyway, check out this link.

COMAdminCatalog
_________________________
Eric

Top
#127873 - 2004-10-14 07:02 PM Re: List COM+ Application under Component Services
maciep Offline
Korg Regular
*****

Registered: 2002-06-14
Posts: 947
Loc: Pittsburgh
Ok, found this site Automating COM+ Administration

And from what i read, i through this little script together

Code:

$obj = createobject("COMAdmin.COMAdminCatalog.1")
$apps = $obj.GetCollection("Applications")
$apps.Populate()
for each $app in $apps
? $app.Name
? $app.key
$comps = $apps.GetCollection("Components",$app.key)
$comps.Populate()
for each $comp in $comps
? $comp.Name
? readvalue("HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\" +
$comp.Key + "\InprocServer32", "")
next
?
next



Edited by maciep (2004-10-14 07:17 PM)
_________________________
Eric

Top
#127874 - 2004-10-14 07:31 PM Re: List COM+ Application under Component Services
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Nicely done. Works a charm here.
Top
#127875 - 2004-10-14 08:14 PM Re: List COM+ Application under Component Services
Anonymous
Unregistered


Thank you so much maciep! Works great!


Top
#127876 - 2004-10-14 08:21 PM Re: List COM+ Application under Component Services
maciep Offline
Korg Regular
*****

Registered: 2002-06-14
Posts: 947
Loc: Pittsburgh
No problem, i do what i can.
_________________________
Eric

Top
#127877 - 2004-10-18 05:55 PM Re: List COM+ Application under Component Services
Anonymous
Unregistered


Sorry, I got one more question.

Can I call the "createobject" function on a remote computer? What is the syntax?

I would like to be able to run this script remotely, if possible.

graymen

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 1955 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.135 seconds in which 0.105 seconds were spent on a total of 11 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org