taskKill = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & taskKill & "\root\cimv2")
Set processlistFull= objWMIService.ExecQuery _
("Select * from Win32_Process Where name = 'wscript.exe'")
For Each killPro In processlistFull
killPro.Terminate()
下一步
如何在现有脚本中添加此脚本并调用此函数以使用热键终止“ wscript.exe”