I have an eventlog entry and wouidl like to query "Security UserID" to retrieve it's value. Is this possible? preferrably using powershell
Log Name: Application
Source: EventCreate
Date: 26/08/2014 10:17:21
Event ID: 4
Task Category: None
Level: Information
Keywords: Classic
User: DOMAIN\UserName
Computer: COMPUTERNAME
Description:
This is a test
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="EventCreate" />
<EventID Qualifiers="0">4</EventID>
<Level>4</Level>
<Task>0</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2014-08-26T09:17:21.000000000Z" />
<EventRecordID>570080</EventRecordID>
<Channel>Application</Channel>
<Computer>COMPUTERNAME</Computer>
<Security UserID="S-1-5-21-xxxxxxxxxxxxxxxxxxxxxx" />
</System>
<EventData>
<Data>Process Started</Data>
</EventData>
</Event>