Mapped Shares Not Visible on Windows 7 Client

How to customize and extend your OpenVPN installation.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Post Reply
kismetgerald
OpenVpn Newbie
Posts: 3
Joined: Sun Sep 15, 2013 12:45 pm

Mapped Shares Not Visible on Windows 7 Client

Post by kismetgerald » Mon Sep 16, 2013 5:14 pm

Good-day,

I'm running into a strange issue on a Windows 7 machine. I'm working on deploying OpenVPN to our mobile workforce and they've requested the ability to have their home drive and another share automatically mapped when they log into the VPN.

So far, I'm using the following lines in a batch file:

Code: Select all

net use O: \\172.23.6.127\shares /persistent:no
net use U: \\172.23.6.127\%USERNAME% /persistent:no
The command prompt opens as expected and the script executes successfully, however, I cannot see the network drives listed. If I immediately attempt to run the script manually, I get an error 53 telling me that the name is already in use.

As the image below shows, if I disconnect the VPN tunnel then reconnect without running the script automatically (i.e., by removing the UP script on the config folder), then run the batch file manually, the shares are mapped and they show up.

Image showing successful manual share mapping:
Image

Someone suggested to me that because I'm running the OpenVPN GUI as Administrator, perhaps the UP script is also running in that context - therefore, the mapped drives are being mapped for the user "Administrator" and not the currently logged on user? Is this the case, if so, how do I rectify this issue?

Any assistance would be really appreciated, thanks.

kismetgerald
OpenVpn Newbie
Posts: 3
Joined: Sun Sep 15, 2013 12:45 pm

Re: Mapped Shares Not Visible on Windows 7 Client

Post by kismetgerald » Tue Sep 17, 2013 2:36 pm

I managed to solve my own problem. Thanks.

gavinsbtm
OpenVpn Newbie
Posts: 3
Joined: Wed Sep 02, 2015 3:16 pm

Re: Mapped Shares Not Visible on Windows 7 Client

Post by gavinsbtm » Fri Sep 04, 2015 1:20 pm

I'm having this issue... how is it resolved?

Post Reply