VBScript (Tutorial): Annoying Script

what it does:
if taskmanager is open then the script will close it. or if it’s closed when you try to open it back up it will but only untill you click okay on the messagebox. also it will display a msgbox every “certain amount of time you inputed”

strComputer = “.”
Set objWMIService = GetObject(“winmgmts:” _
& “{impersonationLevel=impersonate}!” & strComputer & “rootcimv2”)
Set colProcessList = objWMIService.ExecQuery _
(“SELECT * FROM Win32_Process WHERE Name = ‘taskmgr.exe'”)
For Each objProcess in colProcessList
set wshshell = wscript.createobject(“Wscript.shell”)
wscript.sleep 1000

Things that can be edited in the code:
to change the time do this
wscript.sleep 100000 = 1 Minute
wscript.sleep 10000 = 10 seconds
wscript.sleep 1000 = 1 second

the time is done in millesconds
and to make it kill another task instead of taskmgr.exe do this
(“SELECT * FROM Win32_Process WHERE Name = ‘notepad.exe'”) -(only change the part with ‘.exe’
Also please comment on my videos. if you have a idea for a tutorial i should do post in in the comments or send it to my email.

email: partymaster1994@yahoo.com
I hope this was helpful i thought of this idea myself. anyway thank you for watching.