Share via


GPDomain.SearchStarterGpos Method (GPSearchCriteria)

 

Queries the domain for Starter Group Policy object (GPO) that match a set of search criteria.

Namespace:   Microsoft.GroupPolicy
Assembly:  Microsoft.GroupPolicy.Management (in Microsoft.GroupPolicy.Management.dll)

Syntax

public StarterGpoCollection SearchStarterGpos(
    GPSearchCriteria searchCriteria
)
public:
StarterGpoCollection^ SearchStarterGpos(
    GPSearchCriteria^ searchCriteria
)
member SearchStarterGpos : 
        searchCriteria:GPSearchCriteria -> StarterGpoCollection
Public Function SearchStarterGpos (
    searchCriteria As GPSearchCriteria
) As StarterGpoCollection

Parameters

Return Value

Type: Microsoft.GroupPolicy.StarterGpoCollection

Returns StarterGpoCollection. The Starter GPOs that match the search criteria.

Exceptions

Exception Condition
ArgumentNullException

searchCriteria is null.

Remarks

The following table contains information about the search criteria you can specify for this method:

Search Property

Meaning

StarterGpoDisplayName

Starter GPOs that have a display name that matches the specified search criteria. The permitted operators are: Equals, Contains, and NotContains.

StarterGpoPermissions

Starter GPOs that have permissions that match the specified search criteria. The permitted operators are: Contains and NotContains.

StarterGpoEffectivePermissions

Starter GPOs that have permissions or inherited permissions that match the specified search criteria. The permitted operators are: Contains and NotContains.

StarterGpoId

Starter GPOs that have an ID (GUID) that matches the specified search criteria. The permitted operators are: Equals and NotEquals.

See Also

SearchStarterGpos Overload
GPDomain Class
Microsoft.GroupPolicy Namespace

Return to top