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
204 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Surfing Is Meant To Be Done Outdoors

Featuring its rugged IP67 compliant exterior and delivering broad, fast, and reliable Wi-Fi coverage, the AP322 is the ideal solution for the outdoors. Manage this AP with either a Firebox as a gateway controller, or with the Wi-Fi Cloud for an expanded set of management features

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
logon script 9 76
VOIP gateways - feedback 23 71
Bandwidth cap???? 8 62
PoE Injector and switch 2 18
When it comes to security, there are always trade-offs between security and convenience/ease of administration. This article examines some of the main pros and cons of using key authentication vs password authentication for hosting an SFTP server.
I had an issue with InstallShield not being able to use Computer Browser service on Windows Server 2012. Here is the solution I found.
Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

726 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