initial commit

This commit is contained in:
2023-03-20 21:47:38 -04:00
parent 0d1216a5cf
commit 9358d85d27
+20
View File
@@ -0,0 +1,20 @@
Function Get-EventData {
params(
[string]$LogName,
[string]$ProviderName,
[datetime]$SearchFromTime
)
# Store search position of event logs in the Windows Registry
# This should eliminate the possibility of double-reporting the same event
$BaseKey = 'HKLM:\SOFTWARE\ATERA Networks\Get-EventData'
$AllLogs = (Get-WinEvent -ListLog *)
$LogsWithEvents = ($AllLogs | Where-Object { $_.RecordCount -gt 0 })
ForEach ( $logWithEvents in $LogsWithEvents ) {
}
}