GPDomain.SearchGpos Method (String)

 

Queries for Group Policy objects (GPOs) that have the specified display name.

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

Syntax

public GpoCollection SearchGpos(
    string gpoDisplayName
)
public:
GpoCollection^ SearchGpos(
    String^ gpoDisplayName
)
member SearchGpos : 
        gpoDisplayName:string -> GpoCollection
Public Function SearchGpos (
    gpoDisplayName As String
) As GpoCollection

Parameters

  • gpoDisplayName
    Type: System.String

    The display name for which to search.

Return Value

Type: Microsoft.GroupPolicy.GpoCollection

Returns GpoCollection All the GPOs that have the specified display name in the domain.

Exceptions

Exception Condition
ArgumentException

gpoDisplayName is an empty string (“”).

ArgumentNullException

gpoDisplayName is null.

See Also

SearchGpos Overload
GPDomain Class
Microsoft.GroupPolicy Namespace

Return to top