楼 主
有无impersonationLevel=impersonate有何区别
发表于 2007-06-14 16:59 · 中国 浙江 衢州 中移铁通
银牌会员
★★★
积分 1,928
发帖 931
注册 2007-01-06 11:46
19年会员
UID 75624
性别 男
状态 离线
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colProcessList = objWMIService.ExecQuery _
("Select * from Win32_Process Where Name = 'Notepad.exe'")
For Each objProcess in colProcessList
objProcess.Terminate()
Next
这里有无impersonationLevel=impersonate,有什么区别??
[
Last edited by bjsh on 2007-7-31 at 02:54 PM ]
论坛跳转: