用task scheduler运行这段WMI script:--比如kill notepad。
for each Process in GetObject("winmgmts:{impersonationLevel=impersonate,
(Debug)}").InstancesOf("win32_process")
If Process.Name = "notepad.exe" Then
Process.Terminate Process.ProcessID
MsgBox "Process terminated"
End If
next