IGPMStarterGPOBackup::GenerateReportToFile method

The GenerateReportToFile gets the report for the backup Starter GPO and saves it to a file at a specified path.

Syntax


HRESULT GenerateReportToFile(
  [in]  GPMReportType gpmReportType,
  [in]  BSTR              bstrTargetFilePath,
  [out] IGPMResult              **ppIGPMResult,
  [in]  BSTR          TargetFile
);

Parameters

gpmReportType [in]

Specifies whether the report is in XML or HTML.

bstrTargetFilePath [in]

Binary string that contains the path to the file where the report is being saved. Use null-terminated string.

ppIGPMResult [out]

Pointer to an IGPMResult interface. The Status property contains a reference to an IGPMStatusMsgCollection.

Note  The value of the Result property is indeterminate and should not be relied upon.
 
TargetFile [in]

Binary string that contains the path to the file where the report is being saved.

Return value

C++

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

JScript

Returns a reference to a GPMResult object.

Note  The value of the Result property is indeterminate and should not be relied upon.
 

VB

Returns a reference to a GPMResult object.

Note  The value of the Result property is indeterminate and should not be relied upon.
 

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2008

Header

Gpmgmt.h

IDL

Gpmgmt.idl

DLL

Gpmgmt.dll

IID

IID_IGPMStarterGPOBackup is defined as 51D98EDA-A87E-43dd-B80A-0B66EF1938D6

See also

IGPMStarterGPOBackup
IGPMBackupDirEx
IGPMStarterGPOBackupCollection

 

 

Show: