2 lines
235 B
PowerShell
2 lines
235 B
PowerShell
$out = "C:\docker\music\app_events.txt"
|
|
Get-WinEvent -FilterHashtable @{ LogName = 'Application'; StartTime = (Get-Date).AddMinutes(-5) } | Select-Object -First 15 TimeCreated, ProviderName, Id, Message | Format-List | Out-File $out |