Testing Software Folders

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


Examples:


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


Tests if the Software Folder object "Microsoft" exists in the container "Global Software Library\Application Library":


Test-EmdbSoftwareFolder "emdb:\rootDSE\Global Software Library\Application Library\Microsoft"


The following example tests, if a Software Folder object with a name starting with "Acrobat" exists in the "Global Software Library\Application Library\Adobe" container:


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


The following code snippet first changes the working directory to the "Packaging Library" Folder under "Global Software Library" and the tests, if an Software Folder named "Albert Tross" exists underneath:


Cd "emdb:\rootDSE\Global Software Library\Packaging Library"

Test-EmdbSoftwareFolder "Albert Tross" -Recurse