IGPMGPO Property Methods

The property methods of the IGPMGPO interface get and set the properties that are described in the following table. For a general discussion of property methods, see Interface Property Methods in the Active Directory Service Interfaces (ADSI) documentation.

Properties

ComputerDSVersionNumber
Version number of the directory service component of the computer configuration portion of the Group Policy object (GPO).
Access type: Read-only
// C++ method syntax
HRESULT get_ComputerDSVersionNumber(
  [out] long* pVal
);

ComputerSysvolVersionNumber
Version number of the system volume folder (SYSVOL) component of the computer configuration portion of the GPO.
Access type: Read-only
// C++ method syntax
HRESULT get_ComputerSysvolVersionNumber(
  [out] long* pVal
);

CreationTime
Time at which the GPO was created. This property is given in the local time zone of the computer.
Access type: Read-only
Scripting data type: Date
// C++ method syntax
HRESULT get_CreationTime(
  [out] DATE* pDate
);

DisplayName
Display name of the GPO. More than one GPO may have the same display name. GPOs are identified in the directory service by the GPO ID, which is a GUID. GPOs are not identified in the directory service by display name.
Access type: Read/write
Scripting data type: String
// C++ method syntax
HRESULT put_DisplayName(
  [in] BSTR newVal
);
HRESULT get_DisplayName(
  [out] BSTR* pVal
);

DomainName
Domain name for the GPO. This name is the full Domain Name System (DNS) name, for example, example.microsoft.com.
Access type: Read-only
Scripting data type: String
// C++ method syntax
HRESULT get_DomainName(
  [out] BSTR* pVal
);

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

ModificationTime
Time at which the GPO was last modified. This property is given in the local time zone of the computer.
Access type: Read-only
Scripting data type: Date
// C++ method syntax
HRESULT get_ModificationTime(
  [out] DATE* pDate
);

Path
Distinguished name of the GPO; for example, cn={myguid},cn=policies,cn=system,dc=coname,dc=com.
Access type: Read-only
Scripting data type: String
// C++ method syntax
HRESULT get_Path(
  [out] BSTR* pVal
);

UserDSVersionNumber
Version number of the directory service component of the user configuration portion of the GPO.
Access type: Read-only
// C++ method syntax
HRESULT get_UserDSVersionNumber(
  [out] long* pVal
);

UserSysvolVersionNumber
Version number of the system volume folder (SYSVOL) component of the user configuration portion of the GPO.
Access type: Read-only
// C++ method syntax
HRESULT get_UserSysvolVersionNumber(
  [out] long* pVal
);

 

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2008

Header

Gpmgmt.h

IDL

Gpmgmt.idl

DLL

Gpmgmt.dll

IID

IID_IGPMGPO is defined as 58CC4352-1CA3-48E5-9864-1DA4D6E0D60F

See also

IGPMGPO
IGPMGPOCollection

 

 

Show: