IGPMSOM::GetInheritedGPOLinks method (gpmgmt.h)

Returns a GPOLinksCollection object that contains the GPO links that are applied to the scope of management (SOM), including links inherited from parent containers (OUs and domains). The collection does not include GPO links from site SOMs or disabled links. The collection is sorted in order of precedence, with the first (earliest) link having the highest priority and last (latest) link having the lowest priority. Note that the GPOs are applied in reverse order of their precedence. The last GPO in the list is applied first and the first GPO in the list is applied last.

Syntax

HRESULT GetInheritedGPOLinks(
  [out] IGPMGPOLinksCollection **ppGPOLinks
);

Parameters

[out] ppGPOLinks

Address of a pointer to an IGPMGPOLinksCollection interface.

Return value

C++

Returns S_OK if successful. Returns a failure code if an error occurs.

JScript

Returns a reference to a GPOLinksCollection object.

VB

Returns a reference to a GPOLinksCollection object.

Requirements

Requirement Value
Minimum supported client Windows Vista
Minimum supported server Windows Server 2008
Target Platform Windows
Header gpmgmt.h
DLL Gpmgmt.dll

See also

IGPMGPOLink

IGPMGPOLinksCollection

IGPMSOM