Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- view systemview included .1.2.3.4.5.6.789
- pass .1.2.3.4.5.6.789 /bin/bash /bin/myscript.sh
- sComputer = "."
- Set oWMIService = GetObject("winmgmts:{(Security)}!\" & sComputer & "rootcimv2")
- Set cEvents = oWMIService.ExecNotificationQuery _
- ("SELECT * FROM __InstanceCreationEvent WHERE " _
- & "Targetinstance ISA 'Win32_NTLogEvent'")
- Do
- Set oEvent = cEvents.NextEvent
- Select Case oEvent.TargetInstance.EventCode
- Case "100"
- Wscript.Echo "Event 100 occurred".
- End Select
- Loop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement