Windows 10: Auto-kill a process

Page 1 of 2 12 LastLast
  1.    20 Oct 2015 #1

    Auto-kill a process


    Is there a way to auto-sense that a process has started and automatically kill it, without user intervention? I am aware of Auto-kill any process v.2.2, but that, according to one reviewer, requires user input. Thanks.
      My ComputerSystem Spec

  2.    20 Oct 2015 #2

    Hi, you can create a small Autohotkey script containing a loop in which you would, at intervals, test if the process exists and then close it or kill it.

    Simply search for Autohotkey. It comprises an extensive syntax with which simple programs can be written, interacting with Windows and GUI features.

    In your case, just a simple loop with a couple of statements would be needed.
    I use this to close Ashampoo advertising popups, for example.
      My ComputerSystem Spec

  3.    20 Oct 2015 #3

    Appreciate the suggestion. I use a .bat file here to do essentially what you describe, but my aim is to automate the process - no user intervention. A specified process opens; it spots and kills it. Closest that I have seen is an app that claims to do this on a schedule.
      My ComputerSystem Spec

  4.    20 Oct 2015 #4

    If you're already using a batch file, perhaps the built-in TaskKill utility would work for you?
    You can then add delay times, etc, in the batch file.
    You could also add it to a scheduled task to run one time x minutes after the computer starts.
      My ComputerSystem Spec

  5.    20 Oct 2015 #5

    Yes, TaskKill is in use. Unfortunately, the process/es in question repeatedly reassert themselves. Thus, the kill util would need to detect that, and take the appropriate action - repeatedly. A method to prevent a process from running in the background would be an alternative, while still allowing the app itself to run on demand.

    To wit: the BG process for a specific app here does not appear when the app is run. It pops up randomly in Task Manager after the app is closed; that's what should be prevented or killed.
      My ComputerSystem Spec

  6.    20 Oct 2015 #6

    Expanding on the batch file possibility, you could use the tasklist command (appropriately filtered) to determine if the task is running, including if it appears randomly, then take action with the taskkill command if it is. Again, you can use Task Scheduler to run a batch containing all the commands, repeatedly. Not sure if that helps. Also it doesn't cater to running the task on demand.
      My ComputerSystem Spec

  7.    20 Oct 2015 #7

    Appreciate your suggestions, Kanata. Thanks.
      My ComputerSystem Spec

  8.    20 Oct 2015 #8

    borgus said: View Post
    Appreciate the suggestion. I use a .bat file here to do essentially what you describe, but my aim is to automate the process - no user intervention. A specified process opens; it spots and kills it. Closest that I have seen is an app that claims to do this on a schedule.
    As I said, a trivial Autohotkey script - a permanent loop
    loop {
    If process exists - kill it
    sleep n
    }

    (very roughly)
      My ComputerSystem Spec

  9.    20 Oct 2015 #9

    Or how about a couple of alternative approaches:
    a. Registry/group policy:
    How to Block an Application or .EXE from Running in Windows

    b. or use your firewall (some firewalls allow you to block processes from running)
      My ComputerSystem Spec

  10.    20 Oct 2015 #10

    Auto-kill a process (firewall block result)


    Good thoughts Dalchina. Don't want to block the app, just the process that randomly starts when the app isn't in use, so "a" won't do the job.

    "b" seems promising. After more extensive searching, I find that this store app DOES have an executable.

    Nonetheless, firewall blocking did not discourage CALCULATOR.EXE from popping up in Task Manager. Good try though. ^_^
    Last edited by borgus; 20 Oct 2015 at 22:03. Reason: New info
      My ComputerSystem Spec


 
Page 1 of 2 12 LastLast

Related Threads
anyone know the answer? what I do know is that the method that worked with windows 7 causes problems with windows 10. I have a device driver that does not work. lenovo et al will need some better device driver programmmers to take charge but...
24770 If you’re one of those quaint people who still uses ‘physical media’ to install new versions of operating systems, Windows 10 could have a big shock in store for you: USB drives replacing the clunky old reinstallation DVDs of yore. Source
Touchpad Auto Selects & Auto Opens in Installation and Upgrade
I just ran across a problem with 10240. When I used my touchpad to move around the desktop, icons are automatically selected and started. The problem went away after a restart but now I am very careful using my touchpad. I think I may have to...
Today's MS Updates kill apps in Windows Updates and Activation
WUP, KB3038930, KB3040021, KB3021952 and one AMD Radeon HD 5450 installed today. Daum PotPlayer for playing videos, etc., Cyberlink PowerDirector 13 and AudioDirector 5 fail to open now.
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 05:38.
Find Us