You can download the scripting program for generating these scripts at:
http://www.planetmps.com/wmiscriptsENQ_M.html
var locator = new ActiveXObject("WbemScripting.SWbemLocator");
var svc = locator.ConnectServer(".", "root\cimv2");
svc.Security_.AuthenticationLevel = 0;
svc.Security_.ImpersonationLevel = 3;
var objs = svc.ExecNotificationQuery("Select * From __InstanceModificationEvent WITHIN 1 where targetInstance ISA 'Win32_Process'");
var objEnum = new Enumerator(objs);
var mystr = new String();
for(;!objEnum.atEnd();objEnum.moveNext())
{
var obj = objEnum.item();
var propEnum = new Enumerator(obj.Properties_);
var mystr = new String();
for(;!propEnum.atEnd();propEnum.moveNext())
{
}
break;
}
No comments:
Post a Comment