Powershell list of object comObject names

Filip 831 Reputation points
2021-05-07T10:08:05.027+00:00

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 for business Windows Server User experience PowerShell
0 comments No comments
{count} votes

Accepted answer
  1. Olaf Helper 47,436 Reputation points
    2021-05-07T10:15:42.787+00:00

    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

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. js2010 191 Reputation points
    2021-05-07T13:55:38.01+00:00

    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
    
    1 person found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.