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
reportType
Type: Microsoft.GroupPolicy.ReportTypeOne of the ReportType values that specifies whether the report is generated in HTML or XML format.
filePath
Type: System.StringThe 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