|
Home > Archive > Server 2003 > December 2003 > VPN, login script automatically
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
VPN, login script automatically
|
|
| Lebanese_007 2003-11-19, 2:04 pm |
| hi... i have a question... i'm using VPN to get to my server (windows 2003)... and i would like to let the users who are logging in to have a mapped drive already mapped for them. instead of going to each computer and mapping the drive for them.
What i did is i created a batch file that includes "net use u: \\servername\sharedfolder". and put it under " c:\windows\sysvol\sysvol\[doma
inname]\scripts". then in active directory, i right clicked the [domainname], properties, group polices, edit, under defualt domain policy, i went to windows settings, scripts, startup, right clicked on it, properties, then i broswered to the batch file " c:\windows\sysvol\sysvol\[doma
inname]\scripts".
it worked when my compter is part of the domain, and clicking the "log in with dial access" while loggin in.
it doesn't work when i just log in to my computer locally (not part of the domain) and just clicking on a shortcut that establishes the VPN session!!!!
thanks in advance | |
| isles1 2003-11-19, 2:33 pm |
| I think I understand what you are asking, so I will give it a shot...
If you login locally, the GPO is not being applied because it is a local user account and you are not logging into the Domain.
If you must establish the VPN connection first before you can contact the server that hold the drive you want mapped, it sounds like you would have to run the script after you connect via VPN, or you may get a Network Drive not Available error on login if the script is run first.
You may want to put the following before that line in your script:
net use del /u:
I think the syntax is correct (I am not home, so I cannot be sure). The purpose is to delete the current U: drive, because if a U: already exists, it will not be mapped again with a different path. | |
| relder 2003-11-21, 1:27 am |
| "you must establish the VPN connection first"
Correct. Check the box log on using dial up connection. | |
| junkstuff_1974 2003-12-08, 11:36 pm |
| The script is not going to work over a VPN. I put a local copy of the script on the desktop of traveling users.
Sometimes, you have to click the connect useing a different user name option to get the first one to work.
also, if you have not put a host file on the computer trying to connect via vpn -then map by ip |
|
|
|
|