Public/Get-ComProgId.ps1
function Get-ComProgId { <# .Synopsis Ermittelt die ProgIDs aller registrierter COM-Objekte auf dem aktuellen System. .Description Diese ProgId kann u.a. für New-Object -COMObject ... benutzt werden um COM-Objekte zu erzeugen. .Example Get-ProgID .Example Get-ProgID | ? ProgID -match "excel" #> param() $paths = @("REGISTRY::HKEY_CLASSES_ROOT\CLSID") if ($env:Processor_Architecture -eq "amd64") { $paths += "REGISTRY::HKEY_CLASSES_ROOT\Wow6432Node\CLSID" } Get-ChildItem -Path $paths -include VersionIndependentPROGID -Recurse | ForEach-Object { if ($env:Processor_Architecture -ne "AMD64" -or $_.PSPath.Contains("Wow6432Node")) { $ProcessorArchitecture = "x86" } else { $ProcessorArchitecture = "Amd64" } [PSCustomObject]@{ GUID = (Split-Path -Path $_.PSParentPath -Leaf).Replace("{", "").Replace("}", "") ProgID = $_.GetValue("") ProcessorArchitecture = $ProcessorArchitecture } } } # SIG # Begin signature block # MIIcYgYJKoZIhvcNAQcCoIIcUzCCHE8CAQExDzANBglghkgBZQMEAgEFADB5Bgor # BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG # KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCDh5vZOjpVj/wxm # D21w/dAer/eDuL68wao88WA86CwG5KCCFn0wggNyMIICWqADAgECAhA8emkJ82H0 # pEx+itPRny0WMA0GCSqGSIb3DQEBDQUAMFExIzAhBgkqhkiG9w0BCQEWFGluZm9A # YXR0aWxha3JpY2suY29tMSowKAYDVQQDDCFBdHRpbGEgS3JpY2sgKFNvZnR3YXJl # IERldmVsb3BlcikwHhcNMjIxMDE2MTg1MTA3WhcNMzIxMDE2MTkwMTA3WjBRMSMw # IQYJKoZIhvcNAQkBFhRpbmZvQGF0dGlsYWtyaWNrLmNvbTEqMCgGA1UEAwwhQXR0 # aWxhIEtyaWNrIChTb2Z0d2FyZSBEZXZlbG9wZXIpMIIBIj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