Solved

How can I disable or automate the username and password requirement when opening remote folders using a VPN connection.

Posted on 2007-11-23
6
203 Views
Last Modified: 2010-04-30
In order to connect to my host computer via xp pro VPN I need to enter the username/password specified designated to VPN users. No problem. But once I am connected when I use the run command to access the folder I am prompted for the username and password again.

It seems that the hosted shared folder is not technically "shared" until I open the shared folder in the run menu then enter the password for the second time.  I want to eliminate this step.

This is a problem because I am dealing with some poorly written DVR software that needs that folder to be shared before it can review recorded video for the NOVICE user. I want to make this process as user friendly as possible.

(XP & Vista clients)



0
Comment
Question by:tet3828
  • 2
6 Comments
 
LVL 77

Expert Comment

by:Rob Williams
ID: 20339391
As a rule VPN authentication is independent of server authentication.

What are you using for a VPN solution?
If using the Windows VPN, a domain, and you have control of the server you could allow your server/Active directory account permission to log on using the VPN, on the dial-up tab of your user profile, in active directory -"allow access". Then assuming the connecting client PC is a member of the domain, at logon there will be a check box option to connect using dial-up access. Once you choose this, as you logon you will be presented with a group of dial-up connection options, one being the VPN connection (not actually dial-up). This will unify the logon process and connect the VPN before logon. Not only will it eliminate the two steps, it will allow logon scripts to run at logon and group policy to be applied, connecting the VPN and shares automatically.
0
 
LVL 1

Expert Comment

by:oipunx4life
ID: 20339657
Depending on the VPN client you are using, you can attach a connection script establishing a mapped session with the persistent switch, supplying the users' credentials.
0
 

Author Comment

by:tet3828
ID: 20339831
I am using the VPN integrated into XP Pro  would you happen to have a quick how to,  links or tips on how to configure and apply these scripts?
0
 
LVL 77

Accepted Solution

by:
Rob Williams earned 125 total points
ID: 20339927
The script is usually integrated into your windows server logon, in which case you do not need credentials, just:
net  use  x:  \\Servername\Sharename
However that requires a connection to the server domain first as in my explanation above.

You can also add a script locally to be run but to the best of my knowledge there is no way to force it to run on logon with a Windows VPN client. You can do so with some other 3rd party VPN clients. You can add it to your desktop as a "click-able" batch file with no need to enter credentials, but keep in mind, the password is stored in clear text and easily hacked. To do so open Notepad, enter:
net use \X: \\ServerName\ShareName  password  /USER:DomainName\UserName
(Note-  USER is not a variable, leave that as is)
Then save as "logon.bat" to your desktop. Use the quotes to make sure it saves with the correct extension. Once the VPN is connected double click on the icon. There is a parameter to make it a persistent connection, but I find when the VPN is not present it can cause issues.

What are you connecting to, another XP machine or a Windows server. If the former the desktop batch file is the way to go.
You are likely getting 2 logon requirements because you haven't authorized an existing user for VPN access, but rather created and are using VPN user account.
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Stuck in INIT/DROTHER 2 49
Server 2012 L2TP VPN Windows client to server 3 28
Dell PowerConnect 2824 w/ two DHCP 6 22
Changing Lease Duration for DHCP clients 34 32
When you try to share a printer , you may receive one of the following error messages. Error message when you use the Add Printer Wizard to share a printer: Windows could not share your printer. Operation could not be completed (Error 0x000006…
I had an issue with InstallShield not being able to use Computer Browser service on Windows Server 2012. Here is the solution I found.
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question