Powershell - Listing failed IP addresses from security log including count -
I have the following powers to output a list of IP addresses for the failed logon events: < Pre> I would really like to improve it so that it's the IP address as it is, still $ _ I have tried some things but I think I am stuck in the SQL world! I think all of you in the second pipeline, select (but I will check by looking at the properties returned from $ dt = [datetime] :: now. Adides (-1) # $ l = get-event log-logname 'security' only in the last 24 hours -Estance ID 4625 -Intern $ $ DT | Select object @ {n = 'IpAddress'; E = {$ _. Replacement strings [-2]}} $ g = $ l | Group-Object-Property IpAddress | Where {$ _. Calculation-GT2} Select - Property Name | Export-csv c: \ users \ export.csv
-property name requires change with
- choose - property name, calculation
group-object to
mill-member ).
Comments
Post a Comment