Delete multiples processes from once

Execute taskkill.exe /F /IM cmd.exe /T where cmd.exe is the program to kill.


How to create a task Schedule that execute a bat file

In Vista/Seven/2008/2008R2 it´s hard to configure a task schedule that execute bat or vbs files…

With this settings you can!

Create a vbs that does runas administrator:

set WshShell = WScript.CreateObject(“WScript.Shell”) “runas /user:domain\user %comspec%” ‘Open command prompt 
WScript.Sleep 1000 
WshShell.SendKeys “password” ‘send password 
WshShell.SendKeys “{ENTER}” 
WScript.Sleep 1000

Set objApp = CreateObject(“WScript.Shell”) “D:\Scripts_TaskSchedulers\LATAM.cmd” ‘execute the bat or cmd file
Set wshshell = nothing

Create a new task shcedule that go to find the new vbs.

It´s all!