Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 845
  • Last Modified:

Automatic "script" for drive mapping/disconnect/break connection

Now that I have the VPN connection running... I need to automate the steps the user has to do to get connected to the other end.

Now, there are 4 different ICONs plus a manual disconnect.

1.  The user "clicks" on "Connect To Office" ICON to make VPN connection
2.  When the connection is made, the user "clicks" on "Map Office Drive(.bat)" to do

net use I: \\192.168.10.4\Drive_C

3. When completed user can "click" on shortcut to "I:\documents and settings\Username\my documents" and work on document files

4. When user is finished "clicks" on "Disconnect Office Drive(.bat)" to do

net use I: /d

5. Then user "right clicks" on "Connect To Office" in the Systray and selects "Disconnect"

Is there a way to simplify this into

  "Connect to Office"
  "Disconnect from Office"

ICONs????

Environment:

Both systems XP
One side cable modem
Other side SBC DSL
2 WGT624 Wireless Routers

Thanks,
JGS
0
sijgs
Asked:
sijgs
1 Solution
 
grbladesCommented:
Hi sijgs,
You could join the computer to the domain and get the users to log in directly to the domain across the VPN connection. I am assuming you are using the normal windows vpn client.

It sounds as if though you want someone to write a script for you to perform the tasks so you just have the single icon to connect and map the drives etc... You would be better off posting a question in one of the windows sections.
0
 
sijgsAuthor Commented:
grblades:

Well, there is no domain, they are workgroup peers.

I think this entry from Microsoft Networking is all I need in the two .bat files

USAGE:
        rasdial entryname [username [password|*]] [/DOMAIN:domain]
                [/PHONE:phonenumber] [/CALLBACK:callbacknumber]
                [/PHONEBOOK:phonebookfile] [/PREFIXSUFFIX]

        rasdial [entryname] /DISCONNECT

        rasdial

So I can

rasdial "VPN NAME"
check error code
net use d: \\server\share

in on .bat file

and

net use D: /d
rasdial "VPN NAME" /disconnect

in the second.

Thanks for suggesting another area, I did it with "search" not limited to this area.

Regards,
JGS
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now