Author Archives: xflak40

VPN Auto Connect v1.2 Released!

I just released VPN Auto Connect v1.2, while it’s essentially the same as v1.1, a new tool now comes bundled with it; “Configurator for VPN Auto Connect”.

In the past, to configure the app’s settings you would have had to manually edit a settings file using a text editor, well NO MORE! Now you can use the Configurator to adjust your settings easily as well as schedule tasks with the click of a button (no more having to manually set up tasks in windows task scheduler!).

The Configurator was actually a lot of work for me, as it took me out of my comfort zone, but now that I’ve built it for VPN Auto Connect, it should be fairly quick and easy to do the same for my other apps; so you can expect to see similar updates to my other tools in the not-too-distant future. That being said, it may take awhile as my wife and I just had baby #2 seven weeks ago, and we’re moving in 1 week, so free time is a scarce resource these days! On that note, any donations would be very much appreciated, or if that’s too difficult, perhaps just post a comment with your thoughts or thanks! Always happy to hear feedback.

Here’s a screenshot of Configurator for VPN Auto Connect so you get get a sense of how easy it is to setup! If you were to hover your mouse over any of the items, tips will pop up with more info making it even easier to use.

Configurator for VPN Auto Connect

Download VPN Auto Connect


VPN Auto Connect

I am incredibly proud of VPN Auto Connect, my most recent automation script and I strongly encourage anyone that is concerned about maintaining a VPN connection try out this tool.

In today’s world, keeping your data anonymous and encrypted on the internet is necessary to protect yourself. To that end, VPNs have become increasingly popular. But VPNs can and will occasionally get disconnected, leaving you exposed. Some VPNs offer a “kill switch” baked into their software to disable your entire internet connection when you get disconnected, but very few are able to disable just a certain program (e.g. uTorrent) or re-connect to the same or alternate VPN servers… enter VPN Auto Connect.

This windows script will ensure you are always connected to your VPN (using OpenVPN GUI). If disconnected, it will try to reconnect to one or more pre-set ovpn configuration files. If a connection cannot be established, this script can (optionally) kill uTorrent and (optionally) send you email notifications. After a failed connection attempt, you will only be notified when a connection is re-established (i.e. you won’t get an email every X minutes if connection attempts keep failing). When a connection is re-established, you can (optionally) auto-restart uTorrent.

All options can be customized in the using the “Configurator for VPNAutoConnect” tool; alternatively you can edit the settings file directly using a text editor. Here you can also adjust the verbose setting to have VPNAutoConnect.exe launch invisibly, ideal for background usage and scheduled tasks. You can also specify an alternate opvn config directory, in case you want to auto-connect to different VPN config file(s) than those used in OpenVPN GUI. All action taken by this script will be logged in the same directory as the script itself.

The script will loop through each ovpn config file located in the config directory in alphabetical order until the number of set connection attempts is reached or a connection is successfully established. You must ensure that the opvn config files are set up in such a way that they are able to connect without requiring additional information (i.e. username and passwords must be built in). Saving your password in OpenVPN for automatic login is explained at Alternatively, you can contact your VPN provider for support if this method doesn’t work (my VPN provider was able to supply an unencrypted key file).

Use the Configurator to schedule a task to run VPNAutoConnect every X minutes (or do it the old fashioned way using windows task scheduler directly) to check if disconnected and try to re-establish a VPN connection. Do not worry about having more than one instance of the program running at one time, as the exe will not execute if another instance is already running. In other words, if you schedule this to run every minute it won’t run until the previous instance has finished.

To ensure you’re fully protected, you should also follow additional VPN precautions and VPN leak tests at This will explain how to disable IPv6 on your VPN adapter, set up an alternate DNS provider so your ISP won’t be able to detect DNS leaks, and more.
If using VPNSecure app instead of OpenVPN
Adjust the settings accordingly, and this script is able to connect to the top most “Recent” server in VPNSecure’s app (v2.0.7). To work, you must manually connect to a server at least once to make sure there is a server listed under “Recent”.

v1.0 released July 17, 2016
v1.1 released July 22, 2016
-added admin rights prompt to exe
-added warning if not being run with admin rights
-added ability to reset TAP adapter to auto-troubleshoot general WiFi dis-connectivity
v1.2 released July 31, 2016
-added “Configurator for VPNAutoConnect” tool to enable easy configuration and task scheduling of VPNAutoConnect

Download VPN Auto Connect

New app to keep your VPN provider honest!

VPNSecure Canary Checker

A warrant canary is a statement saying a company has not received secret requests for user data by government or law enforcement officers. The existence of a warrant canary on a website indicates the “all clear”. When it disappears, visitors might assume the website has received classified requests for data and should proceed with caution.

This Windows script will check for the warrant canary at, and if missing or older than X days, it will:

  • send a notification email to any number of email addresses (including but not limited to VPNSecure support)
  • Optional: uTorrent kill switch to end uTorrent(if running) and rename uTorrent.exe to uTorrent.exe.bak so it won’t launch at its next scheduled time. If the warrant carry is fixed\updated, the script will automatically rename uTorrent back, reversing the changes.

You will need to update the values in the settings file to send emails. The settings also has an option to specify how outdated the canary should be before action is taken. There is also a uTorrent kill switch setting you can use to specify when uTorrent should be disabled (never, when canary is missing\expired, or only when canary is missing). Here you can also adjust the verbose setting to have VPNSecureCanaryChecker.exe launch invisibly, ideal for background usage and scheduled tasks.

The ideal usage of this script is to launch it using windows task scheduler on a reoccurring basis. Note that the uTorrent kill switch requires admin rights, so if using this option ensure you have scheduled the task to run with highest privileges (or have UAC disabled).

Logs of all activities are saved in the same folder as the VPNSecure Canary Checker.

This script can easily be adapted to work for canaries of other providers or to kill other programs instead of, or in addition to, uTorrent. If you adapt the script for another purpose please just give credit where credit is due. Should you like help adapting this script for your purposes feel free to shoot me a request.

v1.0 Released on July 2, 2016

Download VPNSecure Canary Checker

Released a new app to auto-shrink your home videos!


Sick of your home videos taking over all your free hard drive space? Why not compress them? Using Handbrake for Windows, this script will shrink all the mp4’s, avi’s and mkv’s in a specified folder (including subfolders) without any noticeable loss in quality.

Just drag and drop any file or folder you want compressed onto AutoHandbrake (or a shortcut to AutoHandbrake) and sit back and relax.

Alternatively, you can launch the program via command line, a shortcut, a scheduled task, or some other program or script.

v1.0 Released on May 27, 2016

Download AutoHandbrake