Get-WinEvent Obtain Interactive Logon Messages Only

后端 未结 5 1227
南方客
南方客 2021-01-15 15:13

I am attempting to get this PS script going to pull the Security log from multiple machines and only search for the Event ID of 4624 and only show me the logs that contain \

5条回答
  •  -上瘾入骨i
    2021-01-15 15:34

    FYI in case anyone else ever attempts to do this same thing, it was looking for extra spaces after "Logon Type:" It wanted it to look like it does in the log iteself, "Logon Type: 2" I am not sure how to get around this in powershell, but putting it that way did the trick for me.

提交回复
热议问题