Gpo.GenerateReportToFile Method (ReportType, String, GPStatusMessageCollection)


Generates a report for a Group Policy object (GPO), saves it to a specified file, and returns status.

Namespace:   Microsoft.GroupPolicy
Assembly:  Microsoft.GroupPolicy.Management (in Microsoft.GroupPolicy.Management.dll)


public void GenerateReportToFile(
    ReportType reportType,
    string filePath,
    out GPStatusMessageCollection statusMessages
void GenerateReportToFile(
    ReportType reportType,
    String^ filePath,
    [OutAttribute] GPStatusMessageCollection^% statusMessages
member GenerateReportToFile : 
        reportType:ReportType *
        filePath:string *
        statusMessages:GPStatusMessageCollection byref -> unit
Public Sub GenerateReportToFile (
    reportType As ReportType,
    filePath As String,
    <OutAttribute> ByRef statusMessages As GPStatusMessageCollection


  • filePath
    Type: System.String

    The path of the file to which the report is saved.

See Also

GenerateReportToFile Overload
Gpo Class
Microsoft.GroupPolicy Namespace

Return to top