Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > PowerShell

Vista - is there any script to get a list of COM Objects in a computer?

Reply
 
Old 09-12-2007   #1 (permalink)
Mugunth


 
 

is there any script to get a list of COM Objects in a computer?

I want to get a list of all the COM Objects installed in a system.
How can this be done in powershell?

Is it possible to get the ProgID of an executable whose path is known?

Mugunth


My System SpecsSystem Spec
Old 09-12-2007   #2 (permalink)
Shay Levi


 
 

Re: is there any script to get a list of COM Objects in a computer?

Keith Hill's one-liner

gci HKLM:\Software\Classes -ea 0| ? {$_.PSChildName -match '^\w+\.\w+$' -and
(gp "$($_.PSPath)\CLSID" -ea 0)} | ft PSChildName



Shay
http://scriptolog.blogspot.com


Quote:

> I want to get a list of all the COM Objects installed in a system. How
> can this be done in powershell?
>
> Is it possible to get the ProgID of an executable whose path is known?
>
> Mugunth
>

My System SpecsSystem Spec
Old 09-12-2007   #3 (permalink)
Marco Shaw


 
 

Re: is there any script to get a list of COM Objects in a computer?

Shay Levi wrote:
Quote:

> Keith Hill's one-liner
>
> gci HKLM:\Software\Classes -ea 0| ? {$_.PSChildName -match '^\w+\.\w+$'
> -and (gp "$($_.PSPath)\CLSID" -ea 0)} | ft PSChildName
gci -> get-childitem
-ea -> -erroraction
? -> where-object
gp -> get-itemproperty
ft -> format-table

;-)


--
----------------
PowerGadgets MVP
http://www.powergadgets.com/mvp

Blog:
http://marcoshaw.blogspot.com
My System SpecsSystem Spec
Old 09-12-2007   #4 (permalink)
Bob Landau


 
 

RE: is there any script to get a list of COM Objects in a computer?

What is a COM object? If you mean every instance of a COM object running on
your machine this will be tedious; in or out of a Powershell instance.

If you mean a list of COM objects which are installed on your machine this
is much easier


get-wmiobject Win32_COMClass

"Mugunth" wrote:
Quote:

> I want to get a list of all the COM Objects installed in a system.
> How can this be done in powershell?
>
> Is it possible to get the ProgID of an executable whose path is known?
>
> Mugunth
>
>
My System SpecsSystem Spec
Old 09-12-2007   #5 (permalink)
Shay Levi


 
 

Re: is there any script to get a list of COM Objects in a computer?

You got me :-) 10x for the reminder

Shay
http://scriptolog.blogspot.com


Quote:

> Shay Levi wrote:
>
Quote:

>> Keith Hill's one-liner
>>
>> gci HKLM:\Software\Classes -ea 0| ? {$_.PSChildName -match
>> '^\w+\.\w+$' -and (gp "$($_.PSPath)\CLSID" -ea 0)} | ft PSChildName
>>
> gci -> get-childitem
> -ea -> -erroraction
> ? -> where-object
> gp -> get-itemproperty
> ft -> format-table
> ;-)
>
> Blog:
> http://marcoshaw.blogspot.com

My System SpecsSystem Spec
Old 09-14-2007   #6 (permalink)
Mugunth


 
 

Re: is there any script to get a list of COM Objects in a computer?

On Sep 13, 8:25 am, Shay Levi <n...@xxxxxx> wrote:
Quote:

> You got me :-) 10x for the reminder
>
> Shayhttp://scriptolog.blogspot.com
>
Quote:

> > Shay Levi wrote:
>
Quote:
Quote:

> >> Keith Hill's one-liner
>
Quote:
Quote:

> >> gci HKLM:\Software\Classes -ea 0| ? {$_.PSChildName -match
> >> '^\w+\.\w+$' -and (gp "$($_.PSPath)\CLSID" -ea 0)} | ft PSChildName
>
Quote:

> > gci -> get-childitem
> > -ea -> -erroraction
> > ? -> where-object
> > gp -> get-itemproperty
> > ft -> format-table
> > ;-)
>
Quote:
Thankyou every one...

My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Script to list open files VB Script
Determine computer objects password days PowerShell
Format-table truncates distinquishedname of computer objects in AD PowerShell
Format-table truncates distinquishedname of computer objects in AD PowerShell
Using a function to setup objects properties with scope of script PowerShell


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46