IGPM2::InitializeReportingEx method (gpmgmt.h)

Sets the location to search for .adm files and the reporting option to determine whether to include comments in the report. This method initializes reporting in an asynchronous manner.

For both Group Policy object (GPO) reporting or Resultant Set of Policy (RSOP) reporting, the Group Policy Management Console (GPMC) searches for and loads .adm files in the following order. First it searches for the specified .adm files in the specified location. Then it searches for any additional .adm files in the default location. Finally it searches the GPO or RSoP for any additional .adm files.

Syntax

HRESULT InitializeReportingEx(
  [in] BSTR bstrAdmPath,
  [in] LONG reportingOptions
);

Parameters

[in] bstrAdmPath

Location to search for .adm files.

[in] reportingOptions

Reporting options. This parameter must be one of the following values.

0

Do not include comments in the report.

1

Include comments in the report.

Return value

JScript

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

VB

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

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

IGPM2