Plattformen testen

Prüft, ob das angegebene Software Paket die angegebene Plattform unterstützt und liefert true, falls die Prüfung erfolgreich ist und false, falls diese fehlschlägt.


Beispiele:


Hinweis: Voraussetzung für die Beispiele ist ein verbundenes PowerShell-Laufwerk.


Das folgende Beispiel prüft, ob das Software Paket "Notepad++ 8.5.1" aus dem Ordner "Global Software Library\Application Library\Open Source" die Plattform "Windows 10 (x64)" unterstützt:


Test-EmdbSoftwarePlatform -Software "emdb:\rootDSE\Global Software Library\Application Library\Open Source\Notepad++ 8.5.1" -Platform "Windows 10 (x64)"


Nun wird geprüft, ob dasselbe Paket beide Plattformen sowohl "Windows 10 (x64)" als auch "Windows 11 (x64)" unterstützt werden:


Test-EmdbSoftwarePlatform -Software "emdb:\rootDSE\Global Software Library\Application Library\Open Source\Notepad++ 8.5.1" -Platform "Windows 10 (x64)", "Windows 11 (x64)"


Wird auf mehrere Plattformen geprüft und es soll true zurückgegeben werden, falls mindestens eine der angegebenen Plattformen unterstützt wird, können Sie den Any-Switch angeben:


Test-EmdbSoftwarePlatform -Software "emdb:\rootDSE\Global Software Library\Application Library\Open Source\Notepad++ 8.5.1" -Platform "Windows 10 (x64)", "Windows 11 (x64)" -Any