Create two batch files as below. They need to be in the same directory as the .ovpn
OpenVPN configuration file
(eg. \Users\Wtower\OpenVPN) and be named with the same name filename, but appending _up
and _down
.
Created
January 1, 2019 21:59
-
-
Save Wtower/ad08afb53c03944463579b25a1757f61 to your computer and use it in GitHub Desktop.
OpenVPN for Windows: Map network drives at connect
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
net use X: /delete |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
net use X: \\192.168.0.0\sharename /user:username password |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment