IGPMGPOLink Property Methods

The property methods of the IGPMGPOLink interface get and set the properties described in the following table. For a general discussion of property methods, see Interface Property Methods in the ADSI documentation.

Properties

Enabled
Value that specifies whether the GPO link is enabled.
Access type: Read/write
Scripting data type: Boolean
// C++ method syntax
HRESULT put_Enabled(
  [in] VARIANT_BOOL newVal
);
HRESULT get_Enabled(
  [out] VARIANT_BOOL* pVal
);

Enforced
Value that specifies whether the GPO link is enforced. If this property is equal to VARIANT_TRUE, the GPO link is enforced and cannot be overridden.
Access type: Read/write
Scripting data type: Boolean
// C++ method syntax
HRESULT put_Enforced(
  [in] VARIANT_BOOL newVal
);
HRESULT get_Enforced(
  [out] VARIANT_BOOL* pVal
);

GPODomain
Domain in which the GPO resides. This is a full DNS name, for example, example.microsoft.com.
Access type: Read-only
Scripting data type: String
// C++ method syntax
HRESULT get_GPODomain(
  [out] BSTR* pVal
);

GPOID
ID of the GPO.
Access type: Read-only
Scripting data type: String
// C++ method syntax
HRESULT get_GPOID(
  [out] BSTR* pVal
);

SOM
Returns a reference to the GPMSOM object to which the GPO link is attached.
Access type: Read-only
// C++ method syntax
HRESULT get_SOM(
  [out] IGPMSOM** ppIGPMSOM
);

SOMLinkOrder
Position of the GPO link in relation to other GPO links for the scope of management (SOM).
Access type: Read-only
Scripting data type: Long
// C++ method syntax
HRESULT get_SOMLinkOrder(
  [out] LONG* lVal
);

 

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2008

Header

Gpmgmt.h

IDL

Gpmgmt.idl

DLL

Gpmgmt.dll

IID

IID_IGPMGPOLink is defined as 434B99BD-5DE7-478A-809C-C251721DF70C

See also

IGPMGPOLink
IGPMGPOLinksCollection

 

 

Show: