You can download the scripting program for generating these scripts at:
http://www.planetmps.com/wmiscriptsENQ_D.html
locator = .OLEObject~new("WbemScripting.SWbemLocator")
svc = locator~ConnectServer(".", "root\cimv2")
svc~Security_~AuthenticationLevel = 0
svc~Security_~ImpersonationLevel = 3
objs = svc~ExecNotificationQuery("Select * From __InstanceDeletionEvent WITHIN 1 where targetInstance ISA 'Win32_Process'")
do obj over objs
do prop over obj~Properties_
end
exit
end
No comments:
Post a Comment