OpenVPN installs the TAP-Windows virtual network adapter driver (tap0901.sys) — this registers a network adapter in Device Manager and HKLM\SYSTEM\CurrentControlSet\Services.
User .ovpn config files go in %USERPROFILE%\OpenVPN\config\; system-wide configs in C:\Program Files\OpenVPN\config\.
The OpenVPNService service runs with elevated privileges to allow non-admin users to connect.
# Check service statusGet-Service-Name"OpenVPNService"-ErrorActionSilentlyContinue|Select-ObjectName,Status,StartType# List active TAP adaptersGet-NetAdapter|Where-Object{$_.InterfaceDescription-like"*TAP*"}# Read system config directory(Get-ItemProperty"HKLM:\SOFTWARE\OpenVPN"-ErrorActionSilentlyContinue).config_dir
🗑️ Cleanup
# Stop service before cleanupStop-Service-Name"OpenVPNService"-ErrorActionSilentlyContinue# Remove OpenVPN registry keysRemove-Item-Path"HKLM:\SOFTWARE\OpenVPN"-Recurse-ErrorActionSilentlyContinueRemove-Item-Path"HKCU:\SOFTWARE\OpenVPN-GUI"-Recurse-ErrorActionSilentlyContinue# Note: SYSTEM\Services\tap0901 and OpenVPNService are removed by the MSI uninstaller