IGPMDomain2::CreateGPOFromStarterGPO method (gpmgmt.h)

Creates and retrieves a GPMGPO object from a GPMStarterGPO object. This method creates a new GPMGPO object. Then, this method copies the contents of the GPMStarterGPO object into the GPMGPO object. Finally, this method updates the appropriate attributes of the GPMGPO object to reflect the configured data.

Syntax

HRESULT CreateGPOFromStarterGPO(
  [in]  IGPMStarterGPO *pGPOTemplate,
  [out] IGPMGPO        **ppnewGPO
);

Parameters

[in] pGPOTemplate

A pointer to a GPMStarterGPO object from which the new Group Policy object (GPO) will be created.

[out] ppnewGPO

Address of a pointer to an GPMGPO object that represents the new GPO.

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

IGPMDomain2