GPSitesContainer.SearchSites Method (Gpo)
Retrieves the scope of management (SOM) for each site in the forest to which the specified GPO is linked.
Namespace: Microsoft.GroupPolicy
Assembly: Microsoft.GroupPolicy.Management (in Microsoft.GroupPolicy.Management.dll)
Syntax
public SomCollection SearchSites(
Gpo gpo
)
public:
SomCollection^ SearchSites(
Gpo^ gpo
)
member SearchSites :
gpo:Gpo -> SomCollection
Public Function SearchSites (
gpo As Gpo
) As SomCollection
Parameters
gpo
Type: Microsoft.GroupPolicy.GpoThe Gpo for which to return linked sites.
Return Value
Type: Microsoft.GroupPolicy.SomCollection
Returns SomCollection. The sites in the forest to which the GPO is linked.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | gpo is null. |
See Also
GPSitesContainer Class
Microsoft.GroupPolicy Namespace
Return to top