Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Map a drive using CMAK

Status
Not open for further replies.

redapples

Technical User
Joined
May 1, 2003
Messages
215
Location
GB
I have been looking at CMAK as a way to allow the non technical staff members of my office (just about each and every one) to connect to our server (2003) from home to allow them access to the Share that contains most of our files.

I have managed to do this for myself at home by doing the following

Set up a manual VPN
Run Net use v: \\[ServerIP]\[Sharename}: [UserName]
supply the password

This is fine for me with the possible annoyance of either having to run the Net use command each time I want it or having a message at logon to my PC that the connection cannot be established.

I am thinking CMAK might be the way to do this. Here is what I think I need to do and some questions.

TASKS
Set up CMAK to connect a VPN
Run a batch file to set up the mapped drive once the connection is set
Run a batch file to remove the mapped drive once the connection is terminated.

QUESTIONS
The IP I use to set up my VPN is not the same as the IP I use for the shared mapped drive when I manually connect(the first relates to the router, the second to the Server), can I pass the username and password used to connect the VPN into a batch file to allow the net use command to run?

How do you write a batch file? I'm pretty sure I know what it should contain (essentially the net use command) but not sure how to go about writing one. Any help? Can I use notepad and name it *.bat ?

I assume CMAK would bundle the batch files when I set up a service profile or do I just leave the files on my server?

hope some answers might be available.

redapples



Want the best answers? See FAQ181-2886

 
amid the tubmbleweed I has been suggested that I can connect my VPN to a specific port which would then route down from the router to the server. Can anyone shed some light on that aspect of VPN with specific reference to the origional post???

heres hoping, Redapples


Want the best answers? See FAQ181-2886

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top