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.