8 lines
244 B
PowerShell
8 lines
244 B
PowerShell
$StartTime = (Get-Date).AddMinutes(-<minutes>)
|
|
$ID=<event_id>
|
|
Get-WinEvent -FilterHashtable @{
|
|
LogName='Application'
|
|
ProviderName='Qlik Enterprise Manager'
|
|
Id=$ID
|
|
StartTime=$StartTime
|
|
} | fl * | Out-File -FilePath events.log -Append |