//Remote Assistance Requests Data Class #pragma namespace("\\\\.\\root\\cimv2") [Union, ViewSources{"Select * FROM Win32_NTLogEvent WHERE LogFile='Application' AND SourceName='Remote Assistance'"}, ViewSpaces{"\\\\.\\root\\cimv2"}, dynamic,provider("MS_VIEW_INSTANCE_PROVIDER")] Class RARequests { [PropertySources("LogFile"), Key] string LogFile; [PropertySources("EventCode")] UINT16 EventCode; [PropertySources("RecordNumber"), Key] UINT32 Recordnumber; [PropertySources("Message")] String Message; [PropertySources("TimeGenerated")] DateTime TimeGenerated; }; //Remote Assistance Requests Reporting Class #pragma namespace("\\\\.\\root\\cimv2\\sms") [SMS_Report(TRUE), SMS_Group_Name("Remote Assistance Requests"), SMS_Class_ID("MICROSOFT|RARequests|1.0")] Class RARequests: SMS_Class_Template { [SMS_Report(TRUE), Key] String LogFile; [SMS_Report(TRUE), SMS_Units("DecimalString")] UINT16 EventCode; [SMS_Report(TRUE), Key, SMS_Units("DecimalString")] UINT32 RecordNumber; [SMS_Report(True)] String Message; [SMS_Report(True)] DateTime TimeGenerated; }; //Remote Assistance Connections Data Class #pragma namespace("\\\\.\\root\\cimv2") [Union, ViewSources{"Select * FROM Win32_NTLogEvent WHERE LogFile='Application' AND SourceName='safrslv'"}, ViewSpaces{"\\\\.\\root\\cimv2"}, dynamic,provider("MS_VIEW_INSTANCE_PROVIDER")] Class RAConnections { [PropertySources("LogFile"), Key] string LogFile; [PropertySources("EventCode")] UINT16 EventCode; [PropertySources("RecordNumber"), Key] UINT32 Recordnumber; [PropertySources("Message")] String Message; [PropertySources("TimeGenerated")] DateTime TimeGenerated; }; //Remote Assistance Connections Reporting Class #pragma namespace("\\\\.\\root\\cimv2\\sms") [SMS_Report(TRUE), SMS_Group_Name("Remote Assistance Connections"), SMS_Class_ID("MICROSOFT|RAConnections|1.0")] Class RAConnections: SMS_Class_Template { [SMS_Report(TRUE), Key] String LogFile; [SMS_Report(TRUE), SMS_Units("DecimalString")] UINT16 EventCode; [SMS_Report(TRUE), Key, SMS_Units("DecimalString")] UINT32 RecordNumber; [SMS_Report(True)] String Message; [SMS_Report(True)] DateTime TimeGenerated; };