StarterGpo.GenerateReportToFile Method (String, ReportType)
Generates a report for the Starter Group Policy object (GPO) and saves it to a specified file.
Namespace: Microsoft.GroupPolicy
Assembly: Microsoft.GroupPolicy.Management (in Microsoft.GroupPolicy.Management.dll)
Syntax
public void GenerateReportToFile(
string filePath,
ReportType reportType
)
public:
void GenerateReportToFile(
String^ filePath,
ReportType reportType
)
member GenerateReportToFile :
filePath:string *
reportType:ReportType -> unit
Public Sub GenerateReportToFile (
filePath As String,
reportType As ReportType
)
Parameters
filePath
Type: System.StringThe path of the file to which to save the report.
reportType
Type: Microsoft.GroupPolicy.ReportTypeOne of the ReportType values that specifies the type of report.
Exceptions
Exception | Condition |
---|---|
ArgumentException | filePath is an empty string (“”). |
ArgumentNullException | filePath is null. |
See Also
GenerateReportToFile Overload
StarterGpo Class
Microsoft.GroupPolicy Namespace
Return to top