IGPMDomain::GetGPO method (gpmgmt.h)

Retrieves a GPMGPO object with a specified Group Policy object (GPO) ID. The group policy object ID is represented by a GUID.

Syntax

HRESULT GetGPO(
  [in]  BSTR    bstrGuid,
  [out] IGPMGPO **ppGPO
);

Parameters

[in] bstrGuid

Required. GUID representing the ID of the group policy object to access. Use null-terminated string.

[out] ppGPO

Address of a pointer to the IGPMGPO interface for the group policy object ID and domain specified.

Return value

C++

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

JScript

Returns a reference to a GPMGPO object.

VB

Returns a reference to a GPMGPO 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

IGPMDomain

IGPMGPO