Home User connecting to a Server

I have a home user who will connect via VPN to the Office Network. The user's PC is part of the Domain. I have a log on script which runs on the Domain Controller which maps certain drives for the users.

How do I get these drives on the office network to be mapped automatically for the home user. The Home user will need to log in to their laptop (cached account), and only then launch the VPN access to get connected to the office network. So how do the drives get automatically mapped without user intervention?

How can this be done please?
ben1211Asked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
Lionel MMConnect With a Mentor Small Business IT ConsultantCommented:
Do you want this to be for all users on that PC?

XP -- Then go to C:\Documents and Settings\All Users\Start Menu\Programs\Startup and either put the batch file or the shortcut (preferred) to the batch file in that folder. if you want it just for one user go to C:\Documents and Settings\(UserName)\Start Menu\Programs\Startup

Win7
All Users
C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup
Specific User
C:\Users\(UserName)\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
0
 
jetpowercomCommented:
Back when I did just that with an NT server, I used CMAK to do this.  Review the following links for details:

CMAK and IEAK

Using CMAK wizard to build service profile

CMAK description

CMAK good explanation

All this may take some time to digest.  If your time is limited, I suggest reviewing the last one first.

Hope this helps!





0
 
TheAnvilGroupCommented:
Not the perfect  answer but once the conntection was established you could map the network drives. Ensure the auto reconnect is enabled. When the user connects to the vpn these will reconnect.

Not perfect but it will work
0
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

 
Swapnil PrajapatiSr. System AdministratorCommented:
You can create a simple batch file. That re-map all network drives in one go once the vpn is established.
0
 
Lionel MMSmall Business IT ConsultantCommented:
You can add all your network connections in a batch file--this batch file could run once you have made a successful connection via VPN. How will your home user make the VPN connection?

Example
net use g: \\ServerName\ShareName1
net use h: \\ServerName\ShareName2
0
 
ben1211Author Commented:
The homeuser uses a Cisco VPN software. So how to I establish the batch script to run automatically once the VPN connection has been established?
0
 
jetpowercomCommented:
The CMAK wizard mentioned in my earlier post provides the opportunity to add drive-mapping scripts which automatically run upon connecting.  Below is Step #6:

6.  Add any desired custom actions. For example, I included an option to run a script that maps two network drives after a connection is established.

The link is here:  MS Connection Manager Administration Kit.

Hope this helps!
0
 
ben1211Author Commented:
CMAK needs to be installed on the client's computer? And then it maps the drives? That would mean I have to install CMAK on all the computers. How can this be done on AD?

If the user is part of the AD, then how can this be done please? Note that the user first needs to log on to their computer's cache domain account, and then activate the VPN.
0
 
ben1211Author Commented:
So how to I establish the batch script to run automatically once the VPN connection has been established?  Or rather how do I get the executable file to run after the VPN connection has been established? Considering I use CMAK? Please advise how is this done?
0
 
jetpowercomCommented:
Running the CMAK wizard on the server enables you to create an applet (also known as a "connectoid") for distribution to your user.  Your user can save the applet on his Windows desktop, to run whenever he or she needs to connect to the network.  Within the wizard is a spot where you can specify your desired drive-mapping script to run after the applet establishes the VPN connection.  

You start by installing CMAK on the server, configuring it there and saving the result for distribution to your user.  The following instructions are part of a larger discussion in this Microsoft CMAK Wizard article:

Installing the CMAK wizard
To install Connection Manager components, including the CMAK wizard, on a computer running a member of the Windows Server 2003 family:

Open the Windows Components wizard.
In Components, click Management and Monitoring Tools (but do not select or clear the check box), and then click Details.
Select the Connection Manager Administration Kit check box.
Click OK, clickNext, and then click Finish.
The result will be the applet which you provide to your user for running on his or her home machine.  

Note:  To run the CMAK wizard from an XP machine, you must first install the Windows Server 2003 Administration Tools Pack.  Instructions are mid-way down the page in the above-referenced Microsoft article.  

I located a great pictorial instruction set, which gives you a visual step-by-step views of the process:  Using CMAK to Streamline VPN Client Configuration.  You'll see that your drive-mapping script is a custom action (Step 6 in the article I referenced earlier) that you can specify to run after the user's logon is complete (post-connect).  

CMAK is quite configurable - it even includes the ability to "brand" your file with custom graphics, add a support number, etc.  Use only the features you need, test the file yourself, and your user will be grateful for the new ease of access!

Let us know how this works for you!
0
 
ben1211Author Commented:
Other than using CMAK, is there any other way?
0
 
jetpowercomCommented:
Does the home user also have a machine at the office?
0
 
ben1211Author Commented:
nope. The home user only has a laptop that which is used from home.
0
 
Lionel MMSmall Business IT ConsultantCommented:
If the issue is really the mapped drives then a quick and easy batch file can be written and placed on the user's desktop, this batch file will check to see if the user is connected and if it is create the mapped drives--something like this

If Exist \\ServerName\ShareName1 net use g: \\ServerName\ShareName1

This would first check to make sure the user is connected and if not it would not create the mapped drive and if it did it would. You can add ErrorLevel codes to the batch file to provide feedback to the user about what is or is not happening. Let me know if you want a few examples of this or not!
0
 
ben1211Author Commented:
Hi lionelmm....you mentioned, the batch file would check to see if the shared drives have been created. How does it do it automatically. We can't expect the users to execute these batch files. They won't do it. And so it needs to be automated, probably after the VPN connection has been established. And so I need to know how it can be done automatically without user intervention.

I was told above that once the VPN connectivity has been established, a batch script can be run. True, but tell me how is that done. That's where I am lost and I'm not sure where to place that batch file where it automatically executes once the VPN connection has been established.

0
 
Lionel MMSmall Business IT ConsultantCommented:
This can easily be done--I can write a batch file that will wait 2 minutes, 5 minutes (you decide) after the user has logged on and then attempt to make the network connections (mapped drives). What version of Windows does this user have? You can automate the batch file by putting it in the startup folder of by adding it via GPO.
0
 
ben1211Author Commented:
The user is using Windows XP and some are on Windows 7. How do you put the script in the start up folder? Where do I locate the start up folder on the client's PC?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.