• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1191
  • Last Modified:

ManagementEventWatcher TargetInstance Properties List?


 I'm looking for a complete list, specifically 'Keywords' as found in Windows Event Viewer Security logs.  

0
pointeman
Asked:
pointeman
  • 2
  • 2
1 Solution
 
Bob LearnedCommented:
Huh, wha...?
0
 
pointemanAuthor Commented:
Answer: No 'Keywords' property exists in 'managementbaseobject.properties - Win32_NTLogEvent '
http://msdn.microsoft.com/en-us/library/system.management.managementbaseobject.properties(VS.85).aspx

Win32_NTLogEvent Property Names: (alphabetical order)
* Catagory
* CatagoryString
* ComputerName
* Data
* EventCode
* EventIdentifier
* EventType
* InsertionStrings
* Logfile
* Message
* RecordNumber
* SourceName
* TimeGenerated
* TimeWritten
* Type
* User

using System;
using System.Collections.Generic;
using System.Text;
using System.Management;

namespace ManagementBaseObject_Properties_Probe
{
class Program
{
static void Main(string[] args)
{
// Get the WMI class
ManagementClass processClass = new ManagementClass("Win32_NTLogEvent");
processClass.Options.UseAmendedQualifiers = true;
// Get the properties in the class
PropertyDataCollection properties = processClass.Properties;
// display the properties
Console.WriteLine("Win32_NTLogEvent Property Names: ");
foreach (PropertyData property in properties)
{
Console.WriteLine(property.Name);

Console.WriteLine();
}
}
}
}
 
 
0
 
Bob LearnedCommented:
I still don't understand what you were asking for.  What is the operating system?  Windows XP doesn't have any "Keywords"...  I thought you were looking for a property on the TargetInstance class, and that didn't make any sense either...
0
 
pointemanAuthor Commented:
Open the Event Viewer on 2000, xp, vista computer and double-click an event in any log. There is a category named 'Keywords'. It made sense to me that 'Keywords' would be a property, but as it turns out the 'TargentInstance.Type' is the actual column I needed. It will usually contain 'audit success or audit failure. Anyway, sorry for the confusion....
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now