Testing AutoInsert-Rules

Tests if AutoInsert-Rules exist, possibly for dedicated object-types, and returns true if the test succeeds and false if it fails.


Examples:


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


A single call of the command tests, if there are any AutoInsert-Rules defined:


Test-EmdbAutoInsertRule 


When a check for a dedicated AutoInsert-Rule should be made (the name of the rule will be tested), this can be carried out like this:


Test-EmdbAutoInsertRule "Default Auto-Insert Rule (Computers)"


Additionally the validation scope can be restricted using the ForType-parameter:


Test-EmdbAutoInsertRule "Default Auto-Insert Rule (Users)" -ForType User


Note: Note that AutoInsert-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.