Setting up automatic Internet connection windows 7. Automatic Internet connection on Windows. Network setup and using the startup folder

First, consider windows 7 as an example. Open Start -\u003e Control Panel -\u003e View network status and tasks -\u003e Set up a new connection or network -\u003e Internet Connection -\u003e High Speed \u200b\u200b(with PPPoE) -\u003e

Enter the information received from the Internet service provider: Username and Password. Put a checkmark on "Remember this password." The connection name can be left as is. We are waiting for the message about the successful creation of the connection and close the dialog box.

Now let's make our PPPoE connection connect automatically. In the Network and Sharing Center, go to the link "Change adapter settings"

Right-click on the connection you just created -\u003e Properties -\u003e Options tab -\u003e Uncheck the box for Request name, password ... -\u003e OK

Again, right-click on the connection just created -\u003e Create shortcut -\u003e Yes

Now we find on the desktop a shortcut to our connection -\u003e Right-click -\u003e Copy. Open Start -\u003e All Programs -\u003e Find the Startup folder and click on it with the right mouse button -\u003e Open -\u003e Right-click in this folder -\u003e Insert shortcut

Everything is ready. Now when the machine boots up, the PPPoE connection will connect automatically. Now let's move on to windows 8.1

Everything is a little different here. First, I recommend that you set the desktop to turn on automatically when the computer starts. To do this, on the initial screen, click the "desktop" tile, on the lower task bar, right-click -\u003e Properties -\u003e Navigation tab -\u003e Put a checkmark on the item "When you log into the system and close all applications, open the desktop instead of the initial screen"

Secondly, turn on the display of the "my computer" icon on the desktop. From scratch, click the right mouse button -\u003e Personalization -\u003e Change desktop icons -\u003e Check the box "My computer" -\u003e OK

Further, the procedure for creating a connection is similar to windows 7, but the automatic connection setting is different. Download the reg-file, go to the download (or to another place where the download took place) -\u003e Right-click on the file -\u003e Change. Here we need to change only two things: instead of your_login and your_password, we enter the login and password, which we used when creating the PPPoE connection. In addition, if you changed the name of the connection, then instead of "High-speed connection" we enter the previously entered name. We close the file and respond to the request for saving in the affirmative. Now just run the reg-file by double-clicking -\u003e we agree with the message. After restarting the system, PPPoE will connect automatically.

Or we can do everything with pens. Point the arrow at Start-\u003e RMB-\u003e Run "regedit"), find the following branch: "HKEY_CURRENT_USER \\ Software \\ Microsoft \\ windows \\ CurrentVersion \\ Run" In this branch, create a "string parameter" (right-click -\u003e "Create" - \u003e "String parameter") with an arbitrary name. As a parameter of this record, write:

rasdial "your_connection_name" your_login your_password

Close the registry editor. Changes will also take effect after a reboot.

It is also worth noting that the registry method is valid not only for windows 8 / windows 8.1, but also for windows 7 (Maybe for windows XP, I did not check).

lazvm-comp.ru

Setting up automatic internet connection in windows 7

If you use a PPPoE, L2TP, or PPTP connection to access the Internet on your computer, it may not be quite convenient to start the connection again each time you turn on or restart the computer. This video will talk about how to make the Internet automatically connect immediately after turning on the computer. It's not hard. The two methods described here are equally suitable for windows 7 and windows 8.

Source: wikitubechannel.blogspot.com

Liked the post? Support Chips, click:

Partner News

fishki.net

How to set up automatic internet connection in windows 10

Good time, dear reader! If you do not have a router that independently established a connection to the Internet (through PPPoE, L2TP, PPTP) and each time you turn on the computer you have to manually connect to the Internet, then you probably would like to make this ritual automatic. In this article we will figure out how to do this in windows 10 using the "Task Scheduler".

Step 1 - Launch Task Scheduler

And so to start the task scheduler, we will use the search bar on the taskbar. To do this, enter "Task Scheduler" in the search field and in the search results you will see the application we need, as shown in Figure 1. Click on it to proceed to the next step.

Figure 1 - Starting the task scheduler

Step 2 - Create a Task

If you did everything correctly, you will see a window as shown in Figure 2. And so, at this step you will need a username and password from your Internet provider, usually it is specified in the contract. And also the name of the connection through which you are currently connected to the Internet.

Figure 2 - Task Scheduler

Creating a simple task

In the first step, specify the name of the task: in the name text box, enter a name, for example, "Automatically connect to the Internet" and click on the button next.

Figure 3 - Creating a simple task

Trigger

Then, in the second step, we need to answer the wizard’s question, how often do we want to run the task? Here we select the item at the entrance to windows, as shown in Figure 3. And again click on the button next.

Figure 4 - Trigger

Act

And in the next step "Action" select the item "Run the program" and click on the button next.

Figure 5 - Action

Program launch

The final step, in the text box "program or script", enter the following:

For 32-bit systems

C: \\ windows \\ System32 \\ rasdial.exe

For x64-bit systems

C: \\ windows \\ SysWOW64 \\ rasdial.exe

Next, in the "Add arguments" field, enter: Connection_name Login Password. Indicate the name of the connection through which you connect to the Internet if it contains spaces, take it in quotation marks and accordingly further specify the username and password of your Internet provider with a space. as shown in figure 6. Then click on and the button is ready

Figure 6 - Starting the program

Conclusion

If you did everything correctly, then the next time you turn on the computer, a black window will appear on the screen for a few seconds, after which it will automatically connect to the Internet. It is worth noting that this method does not work when you exit sleep mode.

helpcompservice.ru

How to set up automatic Internet connection when you turn on your PC |

When using a high-speed connection that requires a username and password, you must manually connect to the Internet. However, many users would like the Internet connection to be established automatically. There are at least two ways to organize such a connection.

The simplest and most correct solution is to place the shortcut of your Internet connection in the startup folder of your computer. However, many could notice that in windows 7 there is no possibility at the stage of creating a connection to put its shortcut on the desktop. To create a connection shortcut, open the (Network and Sharing Center) section, which is located in (Control Panel). In the left pane, go to (Change adapter settings). All network connections and network adapters of the computer will be presented here. Minimize the window so that the desktop is visible. It remains only to drag the selected connection to the desktop using the mouse. The shortcut created in this way is placed in the Startup startup folder, which is located here C: Users \\ Name \\ User \\ AppDataRoaming \\ Microsoftwindows \\ Start Menu \\ Programs \\ Startup Now, after the computer restarts, it will automatically connect to the Internet.

Another way is to create a batch file in which the parameters of the Internet connection are written: login and password. Create a text document (TXT) anywhere and write one line into it:

Rasdial NameInetConnect username password

Rasdial - a team that will connect to the Internet;

NameInetConnect - The name of the Internet connection that is used to access the Internet; username - login to access the network; password - the password itself to connect. Then save and close the text file. Rename the file extension from (TXT) to (BAT) and place it in the startup folder:

C: Users \\ Username \\ AppDataRoaming \\ Microsoftwindows \\ Start Menu \\ Programs \\ Startup

The file name can be any. This method has one significant drawback: when connecting to the Internet, the computer user will see the login and password of the connection, which may be undesirable, especially if the computer has a large number of users and knowledge of the connection parameters by them is highly undesirable.

comphelpmoscow.ru

Automatic internet connection

This manual will make life easier for users of windows 7 and windows 8 operating systems that connect to the Internet via PPPoE. The connection technology in this case can be either ADSL or FTTB, or GPON if the optical modem is configured in bridge mode - Bridge. Each time you turn on the computer, you have to go to network connections and start the Internet connection manually. I will tell you how to make an automatic connection to the Internet. So, the procedure:

1. Go to the Network and Sharing Center. (How to enter the Network Control Center)

2. On the right side, we look in the menu for the link Change adapter settings and click on it. 3. Right-click on the desired High-speed connection and select the Properties menu item. 4. Select the Settings tab and uncheck the box Display connection progress, Request a name, password, certificate, etc. .. 5. Click OK. 6. Again, right-click on the High-speed connection and select the Create shortcut item. The system will tell you that it can create a shortcut only on the desktop - we agree with this and click Yes. A shortcut to your High Speed \u200b\u200bInternet Connection will appear on your desktop. 7. Open the Start menu → All Programs. We are looking for the item Startup. We right-click on it and select the menu item - Open.

  1. How to make automatic internet connection   if I don’t have a router? Two operating systems Windows 7 and Windows 8 are installed on my computer, Beeline provider provides Internet services, I want the Internet to connect automatically when I turn on the computer, for example, I turn on the computer and the Internet connects itself, and I don’t need to click on any Beeline shortcuts. Himself, I tried numerous recommendations from the Internet, but it did not help: 1) I created a task using the task scheduler. 2) Created a bat-file (batch file) and placed it in the "Startup" folder at C: \\ ProgramData \\ Microsoft \\ Windows \\ Start Menu \\ Programs \\ StartUp. 3) Created a dial-up connection and everything is useless. Windows 8 is especially alarming; according to rumors, it is generally impossible to make such a connection in it without a router.
  2. Hello admin, please say how to make automatic internet connection   when you start the Windows 8 operating system, the most important thing is that this method is simple and suitable for all existing Internet providers, for example: Beeline, Dom.ru, MTS and so on.

How to make automatic internet connection

Hi friends, I often have to hang around with my friends and, after installing the operating system, configure automatic Internet connection. In today's article, I will show you how to do this if you have not bought a router yet. In fact, there are a lot of options and you could write a dozen instructions, but almost all of them are inoperative in the new Windows 8.1 operating system.

But there is one universal, and most importantly, simple way that works with all providers and in all the most common operating systems, Windows 7 and Windows 8, and even Windows XP. We will use the little-known features of Windows, the Rasdial command, it is it that performs automatic dialing for Microsoft clients.

Note: after successfully creating an automatic Internet connection, drop your Opera, Mozilla or Google Chrome too will start automatically!

We will create a string parameter in the registry and indicate in it the name of our provider, username and password, then reboot and automatically go online.

So, just in case, just in case, create a system restore point, then right-click in the lower left corner and select "Run",

Enter the command "regedit" in the input field and click OK.

We are in the registry, here we find the section responsible for startup

For all users:

HKEY_LOCAL_MACHINE \\ SOFTWARE \\ Microsoft \\ Windows \\ CurrentVersion \\ Run

or for the current user:

HKEY_CURRENT_USER \\ Software \\ Microsoft \\ Windows \\ CurrentVersion \\ Run

In my case, for the current user

HKEY_CURRENT_USER \\ Software \\ Microsoft \\ Windows \\ CurrentVersion \\Run

We click on the empty place of the section with the right mouse button and select Create -\u003e String parameter,

ATTENTION!

The method works on 8.1, only if the connection name consists of one word.

Will work - Beeline

Won't Work - Beeline Internet.

We click on the parameter that we just created with the right mouse and select Change,

Then, if your provider is Beeline, in the Value field, write:

rasdial space "The name of your connection in quotation marks, which can be viewed in the Network and Sharing Center-\u003e Change adapter settings, for example Beeline",

Today, a computer without an Internet connection has become an anachronism. Access to the "world wide web" is necessary when performing a variety of tasks. Therefore, the ability to connect to it already at the start of the system is of paramount importance to the user. The implementation of this is carried out in different ways. This article will discuss how to automatically connect to Windows 7 Internet when you turn it on.

At first glance, a question of this kind seems strange. But if you delve deeper into it, it becomes clear that an Internet connection immediately after turning on the computer is simply necessary. The main thing in carrying out this action is the ability to quickly switch to working with the network. In addition, automatic connection to the web allows you to:

  • get the exact time corresponding to the user's time zone;
  • receive and install updates and necessary components for the system and many necessary programs;
  • ensure the correct operation of applications that start simultaneously with the system and require access to the Internet.

Each user will surely find their own addition to this list. Therefore, it can be continued for a long time. Someone wants to immediately receive a package of latest news from the network, and someone needs to quickly access their documents in the cloud. Definitely: automatic Internet access makes working at a computer more productive and comfortable.

Activate automatic connection

You can configure your computer to automatically connect to the Internet using various methods. The best option is to transfer all the functions of the implementation of the modem or router. Most modern devices of this type have their own network address and web interface, where you can make all the necessary settings, including connection type, login, password, and other points. Thus, nothing needs to be configured on the computer at all. It is enough to register the IP address of the modem or router as a gateway in the network settings, so that every time you turn on the computer, a connection to the World Wide Web is automatically established. And if there is a DHCP server on them, even this can not be done.

But despite the obvious advantages of this type of connection, there are always those who want to automatically configure the Internet connection directly on the computer. There can be reasons for this as a purely technical nature, or related to the user's personal preferences. It does not make sense to describe them in detail, it’s enough to say that such an option is provided for in all operating systems. Windows 7 is no exception to this rule.

In the "seven" to make the Internet connect automatically, available in various ways. A further description of all the solutions to the problem suggests that the Internet connection on the PC has already been created and normally starts manually.

Network setup and using the startup folder

Putting an Internet connection shortcut in the autorun folder seems to be the easiest solution to automate this process. However, there are some nuances that are mandatory for drawing attention to them.

Most domestic providers use PPPoE or L2TP to connect to the Internet. Their distinguishing feature is the need to authorize a user on the network by entering a username and password. Therefore, simply placing the shortcut for such a connection in autorun will only result in the window appearing when the operating system (OS) starts, waiting for the user to confirm the login and password. That is, an almost automatic connection to the Internet will not happen.

Thus, in order to allow the "seven" to start automatic connection to the Internet at startup, it is necessary to ensure that password confirmation is not required when establishing a connection. And such functionality is provided in Windows 7. Its configuration is carried out in the "Network and Sharing Center." You can get there in the following ways:

  • by clicking on the network connection icon in the taskbar located at the bottom of the screen by clicking on the corresponding link;
  • from the Windows control panel, finding the "Network and Internet" section.

After that, do the following:

  1. In the left part of the "Control Center" window, find the link "Change adapter settings" and click on it.
  2. In the network connections window, find what is responsible for the Internet connection, open its properties. You can do this from the context menu, called by right-clicking on the connection name.
  3. Where are the connection properties, go to the "Settings" tab, turn off the request for username, password. To do this, uncheck the corresponding item.
  4. Set the option "Always use the accepted connection by default."
  5. Next, select the created connection, click the "Properties" button.
  6. A window opens, enter the username and password below to access the "global network".
  7. Close all windows by clicking the "OK" button.

Having made all the settings, you can put the connection shortcut in the startup folder, the Internet will be available immediately after loading the OS.

In exactly the same way, you can configure automatic Internet connection on Windows 10 and Windows 8. There is a slight difference only in the name of the control panel sections, but this will not confuse even a novice user.

Using task scheduling

Another way to set up an automatic Internet connection is to use the task scheduler. There are many ways to discover it. The most universal, suitable not only for Windows 7, but also for Windows 8, Windows 10, is the use of the program launch window. It can be called using the Winkey + R keyboard shortcut, or the Run link in the Start menu. To open the scheduler, enter the taskschd.msc command.

After the scheduler window opens, proceed with setting up an automatic Internet connection. To do this, you must:

  1. On the "Action" tab, select "Create a simple task."
  2. A window opens, a name for the task is entered. It must be thought up so that it is easy to understand the nature of the action performed by this task. After that, click on the “Next” button.
  3. In the task trigger settings, specify that it should be executed when entering Windows. Click "Next".
  4. Leave the next paragraph unchanged.
  5. In the task action settings, select "Run the program."
  6. In the next window, enter the command to execute. An internet connection is activated by the rasdial command. In the field for arguments, write the sequence: network name, username and password. The name must be enclosed in quotation marks; all arguments are entered without commas separated by a space.
  7. In the last window, once again check the entered parameters, click "Finish".

After the steps you need to restart the computer. If all the settings are made correctly, the system will automatically connect to the Internet when the system starts.

Many tasks in Windows can be automated by creating a special file containing a command or a sequence of commands necessary for execution. Such a file is called a batch file, it has different extensions, but on Windows the most common cmd or bat files are found.

Setting up automatic Internet access using a bat-file is easy. To do this, you need to take a few simple steps:

  1. On a computer, create a plain text file, open it using notepad.
  2. Write the following lines there:
  • cd% systemroot% \\ system32;
  • rasdial connection_name username and password.

Then you need to save the file, having come up with a name that it understands. You must also change the extension from txt to bat. Next, the file is placed in the startup folder, the next time you start the system, the Internet connection will be performed automatically. The path to the startup folder is as follows: C: \\ ProgramData \\ Windows \\ Windows \\ Start Menu \\ Programs \\ StartUp.

Using Registry Editor

The Windows registry also allows you to perform various tasks in automatic mode. With its help, it’s really possible to automate the entrance to the World Wide Web. This is done in this way:

  1. Open Registry Editor. To do this, enter regedit in the program launch window.
  2. Go to HKEY_CURRENT_USER \\ Software \\ Microsoft \\ Windows \\ CurrentVersion \\ Run.
  3. Create a new string parameter. To do this, just click RMB on Run and select the desired action from the context menu. Name for a new parameter to come up with any.
  4. Use the double-click or Enter key to open the created parameter, assign it a value: rasdial.exe Connection_name Login Password.

This sets up the automatic connection to the "global network". To use the new settings, you must restart the PC. Internet connection should happen automatically.

By creating a new service

This method may seem complicated, but it is only at first glance. As in the previous methods, the basis is the execution of the rasdial command. To create a new service, you must:

  1. Open a windows command prompt window. To do this, enter the cmd command in the program launch window.
  2. Enter the command: sc create startVPN start \u003d auto binPath \u003d “c: \\ windows \\ system32 \\ hidcon.exe rasdial_connection_name username password” DisplayName \u003d “StartVPN” depend \u003d lanmanworkstation obj \u003d “NT AUTHORITY \\ LocalService”.
  3. Using the services.msc command, open the list of services connecting to Windows 7, find the StartVPN service there.
  4. Open the properties of the service by double-clicking, in the line of the startup type, select “Automatically” from the drop-down list.

After performing the above steps, it remains only to restart the PC, to make sure that the automatic connection to the Internet has occurred.

Possible problems and solutions

If, after the settings are made, an automatic connection to the Internet does not occur, you must reconfigure it using one of the methods described above. In this case, you should carefully check:

  • command writing syntax if automatic connection was configured through the creation of a service, registry, or batch file;
  • parameters of browser properties, if the settings were made through the "Network Control Center";
  • presence of a connection shortcut in the automatic download folder, if this method was used.

The surest way to solve the problem is to simply change the setting method to one of the others described above. Some may be successful.

2016-09-07 September 07, 2016 Internet and network 13 39843

Good time, dear reader! If you do not have a router that independently established a connection to the Internet (through PPPoE, L2TP, PPTP) and each time you turn on the computer you have to manually connect to the Internet, then you probably would like to make this ritual automatic. In this article, we will figure out how to do this in Windows 10 using the Task Scheduler.

Step 1 - Launch Task Scheduler

And so to start the task scheduler, we will use the search bar on the taskbar. To do this, enter "Task Scheduler" in the search field and in the search results you will see the application we need, as shown in Figure 1. Click on it to proceed to the next step.

Figure 1 - Starting the task scheduler

Step 2 - Create a Task

If you did everything correctly, you will see a window as shown in Figure 2. And so, at this step you will need a username and password from your Internet provider, usually it is specified in the contract. And also the name of the connection through which you are currently connected to the Internet.

Figure 2 - Task Scheduler

In the first step, specify the name of the task: in the name text box, enter a name, for example, "Automatically connect to the Internet" and click on the button next.

Figure 3 - Creating a simple task

Then, in the second step, we need to answer the wizard’s question, how often do we want to run the task? Here we select the item when entering Windows, as shown in Figure 3. And again click on the button next.

Figure 4 - Trigger

And in the next step "Action" select the item "Run the program" and click on the button next.

Figure 5 - Action

The final step, in the text box "program or script", enter the following:

For 32-bit systems

C: \\ Windows \\ System32 \\ rasdial.exe

For x64-bit systems

C: \\ Windows \\ SysWOW64 \\ rasdial.exe

Next, in the "Add arguments" field, enter: ConnectionName Login Password. Indicate the name of the connection through which you connect to the Internet if it contains spaces, put it in quotation marks and accordingly further specify the username and password of your Internet provider with a space. as shown in figure 6. Then click on and the button is ready

Figure 6 - Starting the program

Conclusion

If you did everything correctly, then the next time you turn on the computer, a black window will appear on the screen for a few seconds, after which it will automatically connect to the Internet. It is worth noting that this method does not work when you exit sleep mode.

At the request of one of the site visitors, I am writing this article. It applies to those of us who have not yet bought a router and are connected to the Internet on a computer. Although in our time, in the presence of phones and tablets with Wi-Fi, I believe that it is much simpler and more convenient to have a Wi-Fi router at home and have an automatic Internet connection on it. But the situations are different, and we will not go into details.

So, in fact, we have an Internet connection through technologies such as VPN, L2TP, PPPoe (It can also be used if you are). And we want the connection to happen automatically when the computer starts, even before the user logs in. In principle, there is nothing complicated so far, so let's move on to the instructions. In general, I think it’s easier now to buy a router (in Ogo.ru, Mvideo or Technosile, since the choice of prices allows you to choose an affordable model) and shift the responsibility for connecting to the Internet on it. For some time now, I prefer TP-Link and at the moment I use it. A router is convenient, as it allows you to connect any Wi-Fi device (phones, smartphones, laptops, tablets) to the network.

1) We need the name of the Internet connection to be in English. Rename it or set the correct name when creating a connection. I will use VPN.

2) This step applies to owners of Windows 7. Open the network connection properties, go to the “Settings” tab and uncheck “Display connection progress”, “Request name, password” and “Enable Windows logon domain”.

3) Next, open the Windows Task Scheduler. To do this, go to: Control Panel → the System and Security group → Administrative Tools → Task Scheduler (or click Win + r   and introduce taskschd.msc ).

4) Select "Action" → "Create a simple task":

5) The "Create Simple Task Wizard" opens. Enter an arbitrary name and description. Click next.

6) We put a dot opposite "When you start the computer." If desired, you can select "When logging into Windows", and the connection will be automatically created after logging in as a user.

7) Select "Run the program":

8) Now the most interesting:
  1) In the field "Program or script" we write the program: C: \\ Windows \\ system32 \\ rasdial.exe
rasdial.exe- A utility built into Windows for a very long time and is used to work with network connections.
  2) In the field “Add arguments” we write the command in the following form:

   * connection_name * * username * * password *

where "username and password" is the login and password provided by your provider.
  In my case, it will look like this (data is fictional):

VPN qazxderfv zxcvnzx

9) Put a tick in front of “Open properties for this task after clicking the“ Finish ”button and click“ Finish ”.

10) Switch the point to "Run for all users." We put a tick in front of “Perform with the highest rights” and in the item “Configure for:” select our operating system. Click OK.

Everything, now when you turn on the computer, the network connection should turn on by itself.

Alternative ways to enable automatic Internet start:

I. Using the autostart function of programs.

I believe that this article will not be complete unless I add several alternative methods. And the first one will be about creating and using a BAT file.

1) So, first of all, of course, we need to create a BAT file that will connect to the Internet. To do this, create a text file in an arbitrary place. And fill it with text of the following format:

Cd% systemroot% \\ system32 start rasdial * connection_name * * username * * password *

2) Rename the file to VPN_autostart.bat. In order to change the file extension, you must enable their display in the folder properties. In Windows 7, press the button Altin Explorer and select "Service" - "Folder Options". In Windows 8 and 8.1, switch to the "View" tab in Explorer, select "Options" - "Change folder and search options." There, on the “View” tab, look for the item “Hide extensions for registered file types” and uncheck. Click OK.

C: \\ ProgramData \\ Microsoft \\ Windows \\ Start Menu \\ Programs \\ StartUp»And copy the file to it.

This completes the first alternative method. It seems like it is very simple, but for some reason it does not always work out for some reason.

II) Autostart of the Internet through a registry entry.

The second alternative method is based on creating an additional parameter to start a network connection.

1) Open the registry by pressing a key combination Win + r   and entering regedit in the window that opens.

2) Open the following branch if you want to enable autorun for all users on the computer:

HKEY_LOCAL_MACHINE \\ Software \\ Microsoft \\ Windows \\ CurrentVersion \\ Run

If you want to enable autorun only for the current one, then you need this branch:

HKEY_CURRENT_USER \\ Software \\ Microsoft \\ Windows \\ CurrentVersion \\ Run

I will create for all users.

3) Create a new string parameter with the name Startvpn   and set the format value to it:

Rasdial * connection_name * * username * * password *

Do not forget that the name of the VPN connection should not contain Cyrillic characters. The next time you start your computer, the computer should automatically connect to the Internet.

III) Autostart of the Internet by creating a new service.

This is another way that should automatically connect to the Internet, before the user logs in.

Sc create startVPN start \u003d auto binPath \u003d "rasdial * connection_name * * username * * password *" DisplayName \u003d "StartVPN" depend \u003d lanmanworkstation obj \u003d "NT AUTHORITY \\ LocalService"

This will create a new service, which will work after starting all system services. In my case, it will look like this:

Sc create startVPN start \u003d auto binPath \u003d "rasdial VPN qazxderfv zxcvnzx" DisplayName \u003d "StartVPN" depend \u003d lanmanworkstation obj \u003d "NT AUTHORITY \\ LocalService"

In console services.msca new service should appear, if it did not appear, check the command syntax.

Open the service properties and change the parameter Launch typeon " Automatic (delayed start)»

And go to the "Recovery" tab. And we switch all three action items to "Restart the service."

Now the connection will be made after starting the computer with automatic reconnection in case of an error.

Programs