![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| 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. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | 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 Specs![]() |
| | #2 (permalink) |
| | 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 Specs![]() |
| | #3 (permalink) |
| | 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 -ea -> -erroraction ? -> where-object gp -> get-itemproperty ft -> format-table ;-) -- ---------------- PowerGadgets MVP http://www.powergadgets.com/mvp Blog: http://marcoshaw.blogspot.com |
My System Specs![]() |
| | #4 (permalink) |
| | 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 Specs![]() |
| | #5 (permalink) |
| | 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 >> > -ea -> -erroraction > ? -> where-object > gp -> get-itemproperty > ft -> format-table > ;-) > > Blog: > http://marcoshaw.blogspot.com |
My System Specs![]() |
| | #6 (permalink) |
| | 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: |
My System Specs![]() |
![]() |
| 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 | |||