Search notes:
Registry: HKEY_CLASSES_ROOT\ProgId
A
ProgId is a user-friendly (that is: readable) identifier that is associated with a
CLSID and thus references a
COM class.
Unlike CLSIDs (which are
guids), ProgIds are not globally unique.
The format of ProgId is <program>.<component>.<version>
, for example Excel.Application.15
. Apparently, the .version
part is not mandatory.
The
ProgId might be referenced as
default value from a
file type key (
HKEY_CLASSES_ROOT\.ext
) in the registry.
Using ProgIDs in PowerShell to create a COM object
PS C:\> $xls = new-object -com excel.application
$xls.visible = $true
$wbk = $xls.workbooks.add()
$wbk.Sheets.item(1).cells(2,2).value = "Powershell says hello"
See also
The WinAPI function CLSIDFromProgID
finds the CLSID for a given ProgID.