Ich arbeite an einem com + -Skript, aber ich bin auf etwas gestoßen, auf dem ich unklar bin. Wie kann ich herausfinden, welche Werte über eine paraMaterizedProperty-Methode exponiert werden? Ich denke, das muss eine Hashtable oder etwas sein.Powershell legen Werte von ParameterizedProperty offen
$comAdmin = New-Object -com ("COMAdmin.COMAdminCatalog.1")
$applications = $comAdmin.GetCollection("Applications")
$applications.Populate()
foreach ($application in $applications) {
$components = $applications.GetCollection("Components",$application.key)
$components.Populate()
foreach ($component in $components)
{
# What other values are available besides "DLL"
$dllName = $component.Value("DLL")
}
}
PS C:\Users\myself> $component|gm -MemberType ParameterizedProperty TypeName: System.__ComObject#{6eb22871-8a19-11d0-81b6-00a0c9231c29} Name MemberType Definition ---- ---------- ---------- Value ParameterizedProperty Variant Value (string) {get} {set}