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