PowerShell Security Log -


I am writing a PowerShell script which calculates the number of 4624 EventIDs in a day, but when I go According to the date I am missing, what is there for the information group who can help me? My output should have the number of logins for that day and something else.

Here's my code:

  Get-EventLog "security" - first ([date time]: now). Where-filter script {$ _. EventID -Ek 4624}    

Try it out: Gate-Event Log Security - First ([DateTime]: now). Where {$ _. EventID-Ik 4624}. Group @ {e = {$ _. Time Generated.Date}} | Sort number-DCC

group-object command allows you to specify the expression for the property on the group. In this situation, you want to group the date code on the date section, so keep in mind that unless they are in place or special codes like ; , @ , {, $ and (.

< / Html>

Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -