How to map home directory over VPN

  • Thread starter Thread starter Jeff
  • Start date Start date
J

Jeff

I have set up a VPN through our firewall to enable users to work from home. I created a batch file to map their network drives once they are connected. I want to use one generic batch file for this purpose. To map the home directory I am using this line:
net use \\servername\home\%username% /persistent:no

This results in a System Error 59 message. Am I going about this correctly?
 
I may be wrong here but perhaps the client computers need
their hosts files edited with your server names & ip
addresses. Are they able to ping the server name &
resolve the ip address?

-----Original Message-----
I have set up a VPN through our firewall to enable users
to work from home. I created a batch file to map their
network drives once they are connected. I want to use one
generic batch file for this purpose. To map the home
directory I am using this line:
 
.....close, but it should be an LMHOSTS file.

See KB 180094 for help. Make sure you use the domain name (0x1b) option and
configure it exactly with the padding spaces.

Or - if your network uses WINS, that might be an easier route.
 
I can ping the server by name or IP without a problem. I can map the other drives with the batch file just fine. The problem is mapping a drive to the users' home directories using the %username% variable. The file structure is \\Server\home\(user home directories). I only want the user to map to their own directory, and not see the others.
 
I can ping the server by name or IP without a problem. I can map the
other drives with the batch file just fine. The problem is mapping a drive
to the users' home directories using the %username% variable. The file
structure is \\Server\home\(user home directories). I only want the user
to map to their own directory, and not see the others

Are those files defined as shared? If not, you can't map to them.
--
Brian Tillman
Smiths Aerospace
3290 Patterson Ave. SE, MS 1B3
Grand Rapids, MI 49512-1991
Brian.Tillman is the name, smiths-aerospace.com is the domain.

I don't speak for Smiths, and Smiths doesn't speak for me.
 
microsoft.public.windowsxp.security_admin news group, Jeff
I can ping the server by name or IP without a problem. I can map the other drives with the batch file just fine. The problem is mapping a drive to the users' home directories using the %username% variable. The file structure is \\Server\home\(user home directories). I only want the user to map to their own directory, and not see the others.

First thing I'd do is check to see if you can map correctly from one of
the clients by using the exact name, rather than using the %username%
variable.
Are the computers that your users are using at home owned and managed by
your company? Are your users logging into your company's domain by using
cached credentials, and then making the VPN connection? What I'm getting
at here is that the %username% variable is set at local logon, and not
when the VPN connection is made. Let's say you've got a user whose
username on their home computer is Joe Smith, and his logon name is
jsmith on your corporate network. If Joe Smith logs on locally at home
as Joe Smith, then connects via VPN to your network, when he runs your
batch file, he's going to be trying to connect to \\server\home\joe
smith and not \\server\home\jsmith.
 
Back
Top