Good evening,
I'm not sure if what I'm attempting to do is possible or not, but I figured I'd put the question out there - in case somebody may have already tried this and been successful.
I am in the process of testing OpenVPN as a possible VPN solution for our mobile employees. I would like to map two network drives - both being Samba shares. One is a general share accessible simply by calling \servername\sharename (that I have no problem with). The second is the user's home drive.
By user I mean, the user who credentials was used to authenticate and create the VPN tunnel. I've already attempted the following in a batch file, but it's not working:
net use u: \\172.23.6.127\%U /persistent:no
I know in Samba I can use the macro (%u) to represent the logged on user, but I'm not sure how to do this in a batch file. Is it even possible?
NOTE: I know that it works if I specify the actual username, but that means I'll have to create and distribute a separate batch file for each user (which I don't mind doing) but if there's a way not to, I'd like to explore it.