Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The GenerateReportToFile method gets the report for the backup Group Policy object (GPO) and then saves the report to a file in a specified path.
Syntax
HRESULT GenerateReportToFile(
[in] GPMReportType gpmReportType,
[in] BSTR bstrTargetFilePath,
[out] IGPMResult **ppIGPMResult
);
Parameters
[in] gpmReportType
Specifies whether the report is in XML or HTML.
[in] bstrTargetFilePath
Binary string that contains the path of the file in which the report is being saved. Use a null-terminated string.
[out] ppIGPMResult
Pointer to an IGPMResult interface. The Status property contains a reference to an IGPMStatusMsgCollection interface.
Return value
C++
Returns S_OK if successful. Returns a failure code if an error occurs.JScript
Returns a reference to a GPMResult object.VB
Returns a reference to a GPMResult object.Requirements
| Requirement | Value |
|---|---|
| Minimum supported client | Windows Vista |
| Minimum supported server | Windows Server 2008 |
| Target Platform | Windows |
| Header | gpmgmt.h |
| DLL | Gpmgmt.dll |