Testing Context-Menu-Groups
Testing Context-Menu-Groups
Tests if the specified Context-Menu-Group(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. |
The following example tests, if the user-defined Context-Menu-Group "Remote Management" exists. User-defined Context-Menu-Groups always have the prefix Custom_ although this is not specified during creation:
Test-EmdbUITaskGroup "Custom_Remote Management" |
Using the command below, you can therefore test, if at least one user-defined Context-Menu-Group is defined in your environment:
Test-EmdbUITaskGroup "Custom_*" |
Note: Note that Context-Menu-Group objects are not part of the context rootDSE and therefore they can be referenced without a full qualified path resp. an absolute path. |