File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -29,12 +29,12 @@ function Get-EventsLoginFailures {
29
29
}
30
30
31
31
. NOTES
32
- Updated: 2023-08-18
32
+ Updated: 2024-04-03
33
33
34
34
Contributing Authors:
35
35
Anthony Phipps, Jack Smith
36
36
37
- LEGAL: Copyright (C) 2023
37
+ LEGAL: Copyright (C) 2024
38
38
This program is free software: you can redistribute it and/or modify
39
39
it under the terms of the GNU General Public License as published by
40
40
the Free Software Foundation, either version 3 of the License, or
@@ -81,7 +81,7 @@ function Get-EventsLoginFailures {
81
81
82
82
process {
83
83
84
- $ResultsArray = Get-WinEvent - FilterHashtable @ { LogName = " Security" ; ID = 4625 ; StartTime = $StartTime ; EndTime = $EndTime } - ErrorAction SilentlyContinue
84
+ $ResultsArray = Get-WinEvent - FilterHashtable @ { LogName = " Security" ; ID = 4625 ; StartTime = $StartTime ; EndTime = $EndTime } - ErrorAction Ignore
85
85
86
86
foreach ($Result in $ResultsArray ) {
87
87
$Result | Add-Member - MemberType NoteProperty - Name " UserSID" - Value ($Result.Properties [4 ].Value)
You can’t perform that action at this time.
0 commit comments