GPRsop.GenerateReportToFile Method (ReportType, String)

 

Generates a report on the Resultant Set of Policy (RSoP) data and writes it to a specified file.

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

Syntax

public void GenerateReportToFile(
    ReportType reportType,
    string filePath
)
public:
void GenerateReportToFile(
    ReportType reportType,
    String^ filePath
)
member GenerateReportToFile : 
        reportType:ReportType *
        filePath:string -> unit
Public Sub GenerateReportToFile (
    reportType As ReportType,
    filePath As String
)

Parameters

  • filePath
    Type: System.String

    The path to the file to which to save the report.

Exceptions

Exception Condition
ArgumentException

filepath is an empty string (“”).

ArgumentNullException

filepath is null.

ObjectDisposedException

The GPRsop is disposed.

See Also

GenerateReportToFile Overload
GPRsop Class
Microsoft.GroupPolicy Namespace

Return to top