Testing Patch-Template-Rules

Tests if the specified Patch-Template-Rule Object(s) exist, and returns true if the test succeeds and false if it fails.


Examples:


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


In the most trivial example, you can test through calling Test-EmdbPatchTemplateRule without any parameters, if at least one Patch-Template-Rule exists in your environment:


Test-EmdbPatchTemplateRule


In the example below, we check if a Patch-Template-Rule "VLC Media Player Template-Rule" exists.:


Test-EmdbPatchTemplateRule "VLC Media Player Template-Rule"


Note: Note that Patch-Template-Rule-objects are Catalog-objects contained in rootCatalog and are therefore not part of the context rootDSE. As as consequence, they can be referenced without a full qualified path resp. an absolute path.