When I have a bunch of sessions running and then lose my VPN connection, rather than just being able to close all my putty windows that were terminated and start over, I have to go to each window and click on the 'OK' within the "server unexpectedly closed network connection" window. I'd like it if I wasn't shown this window. Is there any way to do this? Thanks!


enter image description here

Try changing "Close window on exit:" from "Only on clean exit" to "Always".

If that doesn't work -- there is a lot of forks of PuTTY that add features. Look here to start.

  • Hmmm, this might work out. Now when the disconnect occurs all the windows will be gone. Seems to do the same thing with Always or Never. I'll try this for a while and see if it works out the way I want. Hopefully it still logs all my session still. Thanks!
    – Rywin
    Mar 22 at 19:33

You may kill all PuTTy instances by running the following batch command:

taskkill /f putty.exe

In case that PuTTy doesn't terminate itself, use the forceful method:

taskkill /f /im putty.exe

(Note: The .exe name is just a guess - I don't use PuTTy.)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.