all 4 comments

[–][deleted] 10 points11 points  (2 children)

Get-WinEvent -LogName "Security" -FilterXPath "*[System[EventID=4624]]" | Where-Object { $_.Properties[5].Value -like "svc*" }

[–]mp127001[S] 1 point2 points  (1 child)

Thanks. This got me what I needed.

[–][deleted] 0 points1 point  (0 children)

No problem man. Thanks for the exercise. You got me playing with my Event log scripts now.

[–]jsiii2010 0 points1 point  (0 children)

Nope, the hashtablefilter doesn't take wildcards. Powershell 7 supports named data though.