Windows 8.1 automatic reconnection of VPN disconnection (used when VPN is used on campus and internet), 8.1vpn

Source: Internet
Author: User

Windows 8.1 automatic reconnection of VPN disconnection (used when VPN is used on campus and internet), 8.1vpn

  1.  

    First, right-click my computer, Open Computer Management, select "Task Scheduler", and then click "Create task"

  2.  

    Show as shown in, (the bold font must be filled in accurately)

    Fill in basic information in the "regular" column

    Name: vpn (whatever)

    Description: casual

    User Group: Select whether to run the user after Logon (not changed by default)

    Configuration: Windows8.1

  3.  

    Click "Trigger" in the second column.

    Click "CREATE" to go to the "Create trigger" page.

    Start task: select when an event occurs

    Set: Select basic

    Log: select Microsoft-Windows-NetworkProfile/Operational

    Source: Operational

    Event ID: Enter 10001.

  4.  

    Then select the three columns "operation"

    Click "CREATE" to go to the "Create operation" page.

    Operation: start the program

    Set: Enter the script field in the script field.Rasdial

    Enter the following format for adding parameters:"VPN connection name" user name and password

    (The VPN connection name must already exist to ensure successful dialing. Note that the VPN name is enclosed in double quotation marks)

    Click OK. The configuration is complete.

  5.  

    There are "conditions", "Settings" and other columns. You do not need to modify them by default. You can set the replay time, number of times, and so on.

    P.S. to prevent non-network connections (such as network disconnection) from retrying connections, you can check the condition "start only when the following network connections are available" and select the primary network used to connect to the Internet.

    In this way, the configuration is successful.

    Note: how to select the event log filter ?? Here is what I found from the system event log, and the following will be my search process. Open Control Panel> system and security> management tools, double-click event viewer and open "Windows Log" and "application and Service Log-" Microsoft-> Windows "in the left column. The useful event logs are basically in the column. I found the regular network connection disconnection event in the NetworkProfile of the latter and added it to the filter to execute VPN reconnection as a trigger.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.