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)
Syntax
public void GenerateReportToFile(
ReportType reportType,
string filePath,
out GPStatusMessageCollection statusMessages
)
public:
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
)
Parameters
reportType
Type: Microsoft.GroupPolicy.ReportTypeOne of the ReportType values that specifies the type of report.
filePath
Type: System.StringThe path of the file to which the report is saved.
statusMessages
Type: Microsoft.GroupPolicy.GPStatusMessageCollectionWhen this method returns, contains a GPStatusMessageCollection that holds status messages for the operation.
See Also
GenerateReportToFile Overload
Gpo Class
Microsoft.GroupPolicy Namespace
Return to top