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.
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.
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
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
11 people are following this question.