Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > VB Script

Vista - Run A VBScript after the PPTP VPN connects

Reply
 
Old 10-13-2009   #1 (permalink)
Benny Van


 
 

Run A VBScript after the PPTP VPN connects

Hello All,

We use PPTP VPN to connect to our corporate network, is there a way to
run a VBscript or regular batch file right after the VPN is
established and start to map the drives???

Something like SonicWALL Global Client where you could specify a post-
run script file after the VPN established.

May be we need to use a "big" script file to include both VPN
establish part and the drive mapping part?

Help, thanks!!

Ben

My System SpecsSystem Spec
Old 10-13-2009   #2 (permalink)
Al Dunbar


 
 

Re: Run A VBScript after the PPTP VPN connects


"Benny Van" <fyf5555841@newsgroup> wrote in message
news:513ae752-4e1d-4ca3-8e8b-6f42aea8b775@newsgroup
Quote:

> Hello All,
>
> We use PPTP VPN to connect to our corporate network, is there a way to
> run a VBscript or regular batch file right after the VPN is
> established and start to map the drives???
There are a number of possibilities, including DIY ones if you are willing
to get your hands dirty ;-)

One way would be to run a program as a process that would detect the
transition from having no connection to your network to having one, and then
running the standard logon script from an available DC
Quote:

> Something like SonicWALL Global Client where you could specify a post-
> run script file after the VPN established.
>
> May be we need to use a "big" script file to include both VPN
> establish part and the drive mapping part?
Perhaps, but that could not be a domain logon script, as you probably
already realize.

If you are running a "small" script to establish your VPN connection, you
could perhaps extend that to wait until it detects your network and then run
map the shares. It would be more maintainable in my mind for it to do this
by running the standard domain logon script, unfortunately, that will be
slower than running a simplified script locally.

/Al
Quote:

> Help, thanks!!
>
> Ben


My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
How to do No hang up VBScript (nohup for VBScript) VB Script
vpn pptp Vista networking & sharing
PPTP VPN and Routing Vista General
Microsoft PPTP VPN Vista networking & sharing
PPTP VPN Vista networking & sharing


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46