Re: How to trap the event of a new process starting with wmi

2006-07-06 Thread placid
gel wrote: > > > > Do you have any docs that might help me? the only information i have is from using help(wmi.WMI) and from the examples on Tim Golden's website > > > What would be the best way to watch for multiple pieces of software at > the same time, eg. watching for the start up of calc.ex

Re: How to trap the event of a new process starting with wmi

2006-07-06 Thread gel
gel wrote: > placid wrote: > > > gel wrote: > > > placid wrote: > > > > > > > gel wrote: > > > > > gel wrote: > > > > > > > > > > > Below is how it is down with vbscript. What is the best way to > > > > > > convert > > > > > > this to python? > > > > > > > > > > > > strComputer = "." > > > > >

Re: How to trap the event of a new process starting with wmi

2006-07-06 Thread gel
placid wrote: > gel wrote: > > placid wrote: > > > > > gel wrote: > > > > gel wrote: > > > > > > > > > Below is how it is down with vbscript. What is the best way to > > > > > convert > > > > > this to python? > > > > > > > > > > strComputer = "." > > > > > Set objWMIService = GetObject("winmgm

Re: How to trap the event of a new process starting with wmi

2006-07-06 Thread placid
gel wrote: > placid wrote: > > > gel wrote: > > > gel wrote: > > > > > > > Below is how it is down with vbscript. What is the best way to convert > > > > this to python? > > > > > > > > strComputer = "." > > > > Set objWMIService = GetObject("winmgmts:" _ > > > > & "{impersonationLevel=impers

Re: How to trap the event of a new process starting with wmi

2006-07-06 Thread gel
placid wrote: > gel wrote: > > gel wrote: > > > > > Below is how it is down with vbscript. What is the best way to convert > > > this to python? > > > > > > strComputer = "." > > > Set objWMIService = GetObject("winmgmts:" _ > > > & "{impersonationLevel=impersonate}!\\" & strComputer & > > >

Re: How to trap the event of a new process starting with wmi

2006-07-06 Thread placid
gel wrote: > gel wrote: > > > Below is how it is down with vbscript. What is the best way to convert > > this to python? > > > > strComputer = "." > > Set objWMIService = GetObject("winmgmts:" _ > > & "{impersonationLevel=impersonate}!\\" & strComputer & > > "\root\cimv2") > > Set colMonitore

Re: How to trap the event of a new process starting with wmi

2006-07-05 Thread gel
gel wrote: > Below is how it is down with vbscript. What is the best way to convert > this to python? > > strComputer = "." > Set objWMIService = GetObject("winmgmts:" _ > & "{impersonationLevel=impersonate}!\\" & strComputer & > "\root\cimv2") > Set colMonitoredProcesses = objWMIService. _

How to trap the event of a new process starting with wmi

2006-07-05 Thread gel
Below is how it is down with vbscript. What is the best way to convert this to python? strComputer = "." Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") Set colMonitoredProcesses = objWMIService. _ ExecNotificationQuery("s