Testing Groups

Tests the existence of the specified Group object(s). Returns true, if the group exists and false if it doesn't.


Examples:


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


The following example tests, if a Group object with a name starting of "SAP GUI 7.10" exists in the "Managed Users & Computers\solys.local" container:


Test-EmdbGroup "emdb:\rootDSE\Managed Users & Computers\solys.local\SAP GUI 7.10"


The following snippet checks for the existence of a Group object named "Adobe Reader" anywhere in the Organisation Directory:


Cd "emdb:\rootDSE\Managed Users & Computers"

Test-EmdbGroup "Adobe Reader" -Recurse


Note: The cmdlet Test-EmdbGroup is not only testing for Static Groups but for Group objects of all kinds.