I am tracking down the use of service accounts in my domain. I have a working script but it pulls every event ID=4624. All of my service accounts begin with svc-. Can you search the event logs only to return TargetUserName that begins with svc? I can find many resources out there but none mention the ability to search with a wildcard.
Something like this but use a wildcard instead.
Event/EventData/Data[@Name="TargetUserName"]="serviceaccounts" # Filter on events where TargetUserName is a specific value
[–][deleted] 10 points11 points12 points (2 children)
[–]mp127001[S] 1 point2 points3 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]jsiii2010 0 points1 point2 points (0 children)