This script was first sent to the openvpn-devel mailinglist.


I was looking for a scripted way to rename the tap network node to make it easier for installing my clients. Attached is the batch file I used to rename my network node. I still have to answer yes to two questions but that is much easier to instruct someone to do. This was tested on Windows 7 but it should work on older versions of windows (with XP it should work even better) but I haven't tried it yet.

Basically what this script does is as follows it dumps the content of


and looks for the "TAP-Win32 Adapter V9" DriverDesc and matches it up with its NetCfgInstanceId. It then creates a reg file that modifies the


registry entry to the name you have in the client.ovpn config file. Could Microsoft have picked a more obscure naming convention?

Last modified 7 years ago Last modified on 09/06/11 07:02:54

Attachments (1)

Download all attachments as: .zip