Files
management-scripts/Get-EventData.ps1
T

20 lines
531 B
PowerShell
Raw Normal View History

2023-03-20 21:47:38 -04:00
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 ) {
}
}