Testing Software Packages

Tests the existence of the specified Software Package(s). Returns true, if the Software Package exists and false if it doesn't.


Examples:


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


The following example tests, if the Software Package "7-Zip 16.04" underneath "Global Software Library\Application Library\Open Source Software" exists:


Test-EmdbSoftwarePackage "emdb:\rootDSE\Global Software Library\Application Library\Open Source Software\7-Zip 16.04"


The command below tests, if a Software Package with a name starting with "Adobe" exists in the Folder "Global Software Library\Application Library\Adobe":


Test-EmdbSoftwarePackage "emdb:\rootDSE\Global Software Library\Application Library\Adobe\Adobe*"


Finally this snippet tests, if there is at least one Software Package object anywhere underneath the "Application Library" Folder:


Test-EmdbSoftwarePackage "emdb:\rootDSE\Global Software Library\Application Library\*" -Recurse