Testing platforms

Checks whether the specified software package supports the specified platform and returns true if the check succeeds and false if it fails.


Examples:


Hint: The execution of these examples requires a connected PowerShell drive.


The following example checks whether the software package "Notepad++ 8.5.1" from the folder "Global Software Library\Application Library\Open Source" supports the platform "Windows 10 (x64)":


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


Now it is checked whether the same package supports both platforms "Windows 10 (x64)" and "Windows 11 (x64)":


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


If multiple platforms are checked and true is to be returned if at least one of the specified platforms is supported, you can specify the Any-switch:


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