Excessive TAP-Windows Adapter V9 Cleanup
I had an issue recently where the client machine could not connect to any network resources. We noticed that the user had many TAP-Windows Adapters for VPN (OpenVPN). Some research suggests it occurs due to Microsoft products activating against a KMS server. Anyway, I have created a simple vbs (wsh) script which removes the excess devices in a safely manner. All you might need to change is the location of tapinstall.exe as it might be deployed with your VPN application. I have actually deployed the script by placing it in the netlogon share and using a GPO to create a scheduled task which executes the script on a weekly basis. I used a WMI filter and only targeted laptops. Here is the script. Its not perfect, but I think it does a good job. Dim Shell,path,tempPath,tapInstPath32,tapInstPath64,objFSO Set Shell = CreateObject ("Wscript.Shell") Set objFSO = CreateObject("Scripting.FileSystemObject") strComputer = "." count = 0 tapInstPath32 = ...