View Single Post
  #2 (permalink)  
Old October 27th, 2004, 08:01 AM
mmcdonal mmcdonal is offline
Friend of Wrox
 
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

Start by saving your script to C:\Windows\System

Then put a line in your Registry at:
HKLM\Software\Microsoft\Windows\CurrentVersion\Run RunScript, REG_SZ, "C:\Windows\System\YourScript.vbs"

This will run your script at start up. You may need to put this in your pc image, or you can lay down this registry key with a login script.

I am not sure about invoking the vpn connection.

Do you want to map drives on the other side of this connection?

Mapping a drive F: for example is:

Set objNetwork = WScript.CreateObject("WScript.Network")
   objNetwork.MapNetworkDrive "F:", "\\ServerName\ShareName"

I am not sure if the vpn connection will mess this up. Can you tell me more about the steps you use to make the connection manually?

mmcdonal
Reply With Quote