Quote:
|
Originally Posted by Cache
You want to stop services too? I'm seeing a huge problem with this. You can't just forcibly termiate some processes or services without causing Windows to auto-reboot. msconfig, although may seem a pain to change each time, is by far the best way.
Are you sure you still wan't to do this?
|
Services have image names too. I do have the list of required services so I will not be terminating anything that would cause my computer to reboot or not function properly. The command in CMD is TASKKILL [IMAGENAME] /f (Force terminate). The /f trigger gives the operating system no option, it will close the targeted image name even if it create undesired results.
My only problem is creating a batchfile in which I can list the imagenames (system, system idle process, svchost, explorer.exe, etc.) that I wish not to terminate by means of using IF statements or what not.
EX.
IF IMAGENAME eq System Idle Process
return false
ELSE IF IMAGENAME eq System
return false
ELSE IF IMAGENAME eq smss.exe
return false
ELSE IF IMAGENAME eq csrss.exe
return false
ELSE IF IMAGENAME eq winlogon.exe
return false
ELSE IF IMAGENAME eq services.exe
return false
ELSE IF IMAGENAME eq lsass.exe
return false
ELSE IF IMAGENAME eq svchost.exe
return false
ELSE IF IMAGENAME eq spoolsv.exe
return false
ELSE IF IMAGENAME eq explorer.exe
return false
ELSE IF IMAGENAME eq rundll32.exe
return false
ELSE IF IMAGENAME eq nvsvc32.exe
return false
ELSE IF IMAGENAME eq alg.exe
return false
ELSE IF IMAGENAME eq wscntfy.exe
return false
ELSE IF IMAGENAME eq cmd.exe
return false
ELSE IF IMAGENAME eq wuauclt.exe
return false
ELSE IF IMAGENAME eq tasklist.exe
return false
ELSE IF IMAGENAME eq wmiprvse.exe
return false
ELSE TASKKILL /F /FI "IMAGENAME"
Although this does not actualy function, it was be best way for me to explain what I am trying to do.