Page 1 of 2 12 LastLast
  1.    20 Oct 2015 #1
    Join Date : Jul 2015
    Posts : 149
    Windows 10

    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 ComputersSystem Spec
  2.    20 Oct 2015 #2
    Join Date : Jan 2015
    UK, Midlands
    Posts : 11,120
    Win 10 Pro (1703)

    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
    Join Date : Jul 2015
    Posts : 149
    Windows 10
    Thread Starter

    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 ComputersSystem Spec
  4.    20 Oct 2015 #4
    Join Date : Jun 2015
    Ottawa, Canada
    Posts : 193
    Windows 10 Pro

    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
    Join Date : Jul 2015
    Posts : 149
    Windows 10
    Thread Starter

    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 ComputersSystem Spec
  6.    20 Oct 2015 #6
    Join Date : Jun 2015
    Ottawa, Canada
    Posts : 193
    Windows 10 Pro

    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
    Join Date : Jul 2015
    Posts : 149
    Windows 10
    Thread Starter

    Appreciate your suggestions, Kanata. Thanks.
      My ComputersSystem Spec
  8.    20 Oct 2015 #8
    Join Date : Jan 2015
    UK, Midlands
    Posts : 11,120
    Win 10 Pro (1703)

    Quote Originally Posted by borgus 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
    Join Date : Jan 2015
    UK, Midlands
    Posts : 11,120
    Win 10 Pro (1703)

    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
    Join Date : Jul 2015
    Posts : 149
    Windows 10
    Thread Starter

    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 ComputersSystem Spec

 
Page 1 of 2 12 LastLast


Similar Threads
Thread Forum
How To PERMANENTLY Kill flawed UPDATE ?
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...
Drivers and Hardware
Windows 10 Will Kill The Installation DVD, Finally
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
Windows 10 News
Touchpad Auto Selects & Auto Opens
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...
Installation and Upgrade
Windows 10 Could Kill Patch Tuesday Once and for All
Source
Windows 10 News
Today's MS Updates kill apps
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.
Windows Updates and Activation
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 15:46.
Find Us
Twitter Facebook Google+ Ten Forums iOS App Ten Forums Android App



Windows 10 Forums