PowerShell v2:
Register-WmiEvent -Query "Select * from __InstanceCreationEvent Where TargetInstance ISA 'Win32_NTLogEvent'" -Action { [console]::beep() }
The script in the action block is executed every time an event is written in the eveng log. Expect a lot of beeps :)
source
share