Testing Variable-Groups
Testing Variable-Groups
Tests the existence of the specified Variable-Group(s) and returns true or false depending on the result of the check.
Examples:
Hint: The execution of these examples requires a connected PowerShell drive. |
The following statement checks, if a Variable-Group named "CustomComputerSettings" exists:
Test-EmdbVariableGroup "CustomComputerSettings" |
In order to test, if a Variable-Group having a name starting with "Solys" exists, the command below can be used:
Test-EmdbVariableGroup "Solys*" |
When testing for the existence of a Variable-Group of individual object-types, the RestrictScope-parameter can be used:
Test-EmdbVariableGroup "UserSettings" -RestrictScope User |
Note: Note that Variable-Groups are not part of the context rootDSE and therefore they can be referenced without a full qualified path resp. an absolute path. |