Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Monitor for the Creation of Different ProcessesContent of Monitor for the Creation of Different Processes.vbsMD5 Hash: 9F9A2C5047ACAFEB471CE0F04C69C644 |
||
arrProcesses = Array("freecell.exe","sol.exe","spider.exe","winmine.exe")
strComputer = "." Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2") i = 0 Set colMonitoredProcesses = objWMIService. ExecNotificationQuery _ ("Select * From __InstanceCreationEvent Within 5 Where TargetInstance ISA 'Win32_Process'") Do While i = 0 Set objLatestProcess = colMonitoredProcesses.NextEvent strProcess = LCase(objLatestProcess.TargetInstance.Name) For Each strName in arrProcesses If strName = strProcess Then Wscript.Echo strName & " has started." End If Next Loop | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |