Go Premium for a chance to win a PS4. Enter to Win



Posted on 2002-04-10
Medium Priority
Last Modified: 2012-05-04
Hi People,

i am hosting my own small site at home, i am on a LAN, with an internal IP address, to start my domain, i need to start a VPN connection to that will assign me an External IP address, lets say for example, then this becomes the IP of my site, still easy !!

is there ANY WAY, that i can get this VPN connection automatically started as a system service ??

i need this connection to be ON all the time, even if i log off, or if the system gets restarted at night after a power loss, i want it to be automatically restarted without me logging in a starting it !!

Or am i returning to the linux variant ?? ;-)
Question by:neostudio
  • 3
  • 2
LVL 63

Expert Comment

ID: 6931857
I would look into an automation program that will automatically log you in on startup. Any good scripting language can do this.

VB, WSH etc




 http://www.hiddensoft.com/AutoIt/   No auto-record - uses scripts

http://www.mkssoftware.com/eval/.  unix like automation and script tools

Mouse automation
Win/Dos scripting
Scripting tool.
Phantom scripts and EXE files can be created

I hope this helps !

   Rebol scripting language (www.rebol.com) lightweight cross-platform scripting language. Automate anything you want   on your system.



Author Comment

ID: 6933295
Hi SysExpert,

you will need to excuse me, because what i am looking for is not the automation proccess starter, i am also a Delphi developer and i can write my own utility to start the connection .

I am asking if there is a way i can invoke the kernel or any other dll to automatically start the connection, well in windows 98/ME it is done like this..

rundll32 rnaui.dll,RnaDial "My-Connection-Name"

BTW ))

how dose windows 2000 server handle persistent VPN connections at all, i just cant get it, lets assume this VPN connection i have is here to insure the work of a router, do i have to be here all the time to start it ??

the matter is that it is started as a user and not as a system service, this is the bad aspect here, and i want it as a system service !!

any more ideas ???

PS >>
Thanks for the great links, i learned a lot from them, and BTW) again, update your bookmarks, some are already inactive !!

LVL 63

Expert Comment

ID: 6935630
I Hae a VPN going into work using a third party client. It has to be run manually also.

Not all programs and services can be setup the way you want.

You may be able to do something with the win2k Resource kit. Srvany program
From: schmiegu      Date: Monday, September 25 2000 - 09:55AM EDT

                     This information applies to apps installed as service with srvany.exe, but maybe it applies to other services as well:
                     AppDirectory: REG_SZ C:\WorkDir
                     In Services, click the service, and then, in the Startup Parameters box, type the full command line required to start the application, and include the
                     /D switch, as in the following example:

                     /D C:\\Tmp D:\\Tools\\Vi.exe C:\\Tmp\\FOO

                     You must type two backslashes (\\) in order to specify a single backslash (\).

Leave a copy of the backup program running in the background. Backup should poll the tape drive
     periodically looking for media changes, and should help media changes be recognized prior to the
     real scheduled backup job running. You can use the Srvinstw.exe Microsoft Windows 2000
     Resource Kit program to install the Srvany.exe tool, and then permit Ntbackup.exe to run as a
     service hidden from view.

     Install the Srvany.exe Tool as a Service

          1.Copy the Srvany.exe tool included in the Windows 2000 Resource Kit to the
               %SystemRoot%\System32 folder on your computer.

          2.Start the Srvinstw.exe program.

          3.Click Install a service, and then click Next.

          4.Click Local Machine, and then click Next.

          5.Type srvany under Service name, and then click Next.

          6.Locate the %SystemRoot%\System32\Srvany.exe file, double-click the file name, and then
               click Next.

          7.Click Service in it's own process, and then click Next.

          8.Click System Account, and then click Next.

          9.Click Automatic, and then click Next.

         10.Click Finish.

     Configure the Srvany Service to Run Ntbackup.exe as a Service

          1.Start Registry Editor (Regedt32.exe) to view the following key in the registry:


          2.On the Edit menu, click Add Key..., type Parameters for the key name, and then click OK.

          3.Click to select the Parameters key, and then click Add Value under the Edit menu. Enter
               Application for the value name, and use a data type of REG_SZ.

               NOTE: Make sure you specify the full path to the NTBackup.exe file. Srvany.exe does not
               load the program if you use the %SystemRoot% variable in the path. For example:

                         HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SRVANY Application:
                         REG_SZ: C:\Winnt\System32\Ntbackup.exe

          4.Quit Regedt32.exe.

          5.After you shutdown and then restart your computer, backup starts as a background service.
               Ntbackup.exe should be running and be visible in Task Manager under the Processes tab, and
               permits backup to poll tapes looking for media changes.
I hope this helps !

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.


Author Comment

ID: 6957600
Please Excuse Me SysExpert,
but this was not the thing i am looking for .

I found a function in the kernel32.dll called
RASNodeActivate('X', Y, Z, D);

x- the connection name
y- start after y seconds
z- weather or not to use auto disconnect
d- number of retris before failing

i found it on some site about undocumented Win2K function o\n geocities if i remember, i implemented it and everything is working fine !!

i might need to delete the question, if needed i can post you a 50 points question for the great links you provided !!
LVL 63

Expert Comment

ID: 7019841
Fine, no problem.

I'm glad you got this resolved !

Accepted Solution

Mindphaser earned 440 total points
ID: 7162008
Points refunded and moved to PAQ

** Mindphaser - Community Support Moderator **

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
Mailbox Corruption is a nightmare every Exchange DBA wishes he never has. Recovering from it can be super-hectic if not entirely futile. And though techniques like the New-MailboxRepairRequest cmdlet have been designed to help with fixing minor corr…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …

971 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question