question

Filip-2434 avatar image
0 Votes"
Filip-2434 asked js2010 answered

Powershell list of object comObject names

Hello.

I have this comand in powerhsell:

 $doc = New-Object -ComObject "Word.Appliction"

Is there any list of available application which can i create with New-Object -ComObject "Name".

Thanks for answare.





windows-server-powershell
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

OlafHelper-2800 avatar image
0 Votes"
OlafHelper-2800 answered

The available application with COM interface highly depends on which applications, driver, etc are installed on the current machine.
So a list of all COM apps don't exists.

For your machine you can look it up in registry =>HKEY_CLASSES_ROOT

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

js2010 avatar image
0 Votes"
js2010 answered

From Windows Powershell in Action:

 # find com progid's (2475!)
 function Get-ProgId {
   param ($filter = '.')
   Get-ChildItem -Path 'REGISTRY::HKey_Classes_Root\clsid\*\progid' |
   foreach {if ($_.name -match '\\ProgID$') { $_.GetValue('') }} |
   Where-Object {$_ -match $filter}
 }
    
 get-progid internet
    
 InternetExplorer.Application.1
 Internet.HHCtrl.1
 Internet.HHCtrl.1
 Internet.HHCtrl.1
 InternetShortcut
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.