Advertisement
Guest User

Untitled

a guest
Aug 28th, 2015
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. view systemview included .1.2.3.4.5.6.789
  2. pass .1.2.3.4.5.6.789 /bin/bash /bin/myscript.sh
  3.  
  4. sComputer = "."
  5.  
  6. Set oWMIService = GetObject("winmgmts:{(Security)}!\" & sComputer & "rootcimv2")
  7.  
  8. Set cEvents = oWMIService.ExecNotificationQuery _
  9. ("SELECT * FROM __InstanceCreationEvent WHERE " _
  10. & "Targetinstance ISA 'Win32_NTLogEvent'")
  11.  
  12. Do
  13. Set oEvent = cEvents.NextEvent
  14.  
  15. Select Case oEvent.TargetInstance.EventCode
  16. Case "100"
  17. Wscript.Echo "Event 100 occurred".
  18. End Select
  19. Loop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement