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

ManagementEventWatcher TargetInstance Properties List?

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

  • 2
  • 2
1 Solution
Bob LearnedCommented:
Huh, wha...?
pointemanAuthor Commented:
Answer: No 'Keywords' property exists in 'managementbaseobject.properties - Win32_NTLogEvent '

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)

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...
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....
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

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