Windows 10: Auto Connect PPTP VPN in Windows 10

Discus and support Auto Connect PPTP VPN in Windows 10 in Windows 10 Network and Sharing to solve the problem; I was not able to find a way to do this on these forums, but it seems lots of people are asking this question. I started with this thread on... Discussion in 'Windows 10 Network and Sharing' started by CharlesGunzelman, Jun 19, 2019.

  1. Auto Connect PPTP VPN in Windows 10


    I was not able to find a way to do this on these forums, but it seems lots of people are asking this question. I started with this thread on Expertsexchange https://www.experts-exchange.com/questions/28808999/Auto-Start-VPN-when-windows-10-starts.html



    I used the task scheduler to trigger a rasdial batch script when Ethernet or Wifi connects.


    Modify this command and make sure it works.

    rasdial.exe "YOUR_VPN_NAME" yourusername password123

    Auto Connect PPTP VPN in Windows 10 95da637e-cb59-4085-96ff-ef6b7d54c469?upload=true.png


    Then modify the script at the end of this post so your username and password etc are correct. Save that script as vpndial.bat somewhere on your computer, some people might drop it right into C:\


    Find your event ID's for a successful network connection:

    Open the Event Viewer, go to Windows Logs, and then System.

    Either unplug or plug in your ethernet connection, refresh the page with the Refresh button on the right

    Notate the event ID that corresponds with the connection, not the disconnection.

    Do the same with the Wifi.

    On my computer, these are event ID 32 and 7021 for Ethernet and Wifi respectively, may be different on other computers depending on the device manager.


    Open up Task Scheduler, create a new task ( not basic task), name it, go to the Triggers tab, create a new Trigger

    Change "Begin the task:" to "On an Event", change it to Custom, click New Event Filter button, make changes based on this screenshot.

    Auto Connect PPTP VPN in Windows 10 03790f97-3127-47f1-a3af-4293258ac5b3?upload=true.png


    Change the <All Event IDs> field to your two event IDs that correspond to each adapter's network connect. They are comma separated.

    Click OK, then Click OK again.

    Go to the Actions tab, add a new action, Browse to where you saved the script.

    Click OK, then click OK again.


    You're done!

    Now whenever I plug in Ethernet, Task scheduler starts the script which pings Google's DNS server until it gets a successful reply, then starts the VPN.




    SET counter=60

    :start

    echo %counter%

    IF %counter%==0 goto eof

    ping -n 1 8.8.8.8

    IF errorlevel 0 goto vpn

    SET /A counter=%counter%-1

    goto start

    :vpn

    rasdial.exe "YOUR_VPN_NAME" yourusername password123

    eof

    :)
     
    CharlesGunzelman, Jun 19, 2019
    #1
  2. Erdeslawe Win User
    Erdeslawe, Jun 19, 2019
    #2
  3. Andre for Directly, Jun 19, 2019
    #3
  4. Auto Connect PPTP VPN in Windows 10

    Windows 10 Updates Broke PPTP VPN Connection

    Im Working as tech support for a large Company and we setup all our franchise stores with PPTP servers programmed in the router. The Owners Use this VPN for Gathering franchise reports as well as using VPN for remote support assistance. We have 2 new computers
    on Windows 10 that cannot connect using the windows Built-In VPN. and we also have several windows 10 computers unable to connect to PPTP vpn. i have done all possible things( Like enabling MS-CHAP V2, removing all the Tap adapters and reinstalling them, etc).
    This is only happening on windows 10. this is definitely a windows 10 issue as we have windows 7 & 8 machines that can connect to the VPN without any issues. Please help.
     
    MarkDela Cruz, Jun 19, 2019
    #4
Thema:

Auto Connect PPTP VPN in Windows 10

Loading...
  1. Auto Connect PPTP VPN in Windows 10 - Similar Threads - Auto Connect PPTP

  2. PPTP VPN won't connect

    in Windows 10 Gaming
    PPTP VPN won't connect: So today I decided to use Windows built-in VPN where you get the IP address, username and password from a certain website. You see, sometimes when I use the PPTP protocol it will randomly fail to connect for a day and goes back to normal in the next day. The error message is...
  3. PPTP VPN won't connect

    in Windows 10 Software and Apps
    PPTP VPN won't connect: So today I decided to use Windows built-in VPN where you get the IP address, username and password from a certain website. You see, sometimes when I use the PPTP protocol it will randomly fail to connect for a day and goes back to normal in the next day. The error message is...
  4. PPTP VPN won't connect

    in Windows 10 Network and Sharing
    PPTP VPN won't connect: So today I decided to use Windows built-in VPN where you get the IP address, username and password from a certain website. You see, sometimes when I use the PPTP protocol it will randomly fail to connect for a day and goes back to normal in the next day. The error message is...
  5. Help split tunneling PPTP VPN on Windows 10

    in Windows 10 Network and Sharing
    Help split tunneling PPTP VPN on Windows 10: Hi all, to work at home my job has provided me with a VPN and .rdp file to remote into my work computer. I cannot change VPN protocols, we are using PPTP and that's how they'll keep it for another decade probably. I've tried split tunneling myself but it's something too...
  6. Unable to connect to my office PPTP VPN

    in Windows 10 BSOD Crashes and Debugging
    Unable to connect to my office PPTP VPN: I was trying to connect to my office PPTP VPN, but it fails with no error after the reboot. I tried again but received an error message "the specified port already open". I don’t think the issue is caused by the RAS or my home network because I can connect from other...
  7. Unable to connect to my work PPTP VPN

    in Windows 10 BSOD Crashes and Debugging
    Unable to connect to my work PPTP VPN: I cannot connect to my work PPTP VPN. After rebooting I get the error the specified port already open. I tried to connect using different Windows 10 computers and it was OK so I think there is no issue with either the RAS or my home network.\ I tried to delete and recreate...
  8. Don't see network computers on pptp VPN and OpenVPN

    in Windows 10 Network and Sharing
    Don't see network computers on pptp VPN and OpenVPN: Hi I managed to connect on pptp and OpenVPN to access the home network remotely but when I go to explorer and try to locate the network computers, I don't see them and I would like to see what can be done to fix it. thanks Anthony...
  9. PPTP VPN setup

    in Windows 10 Network and Sharing
    PPTP VPN setup: The connection is between my Win10 laptop (build 10586.71) and my home Buffalo router. The connection worked fine before from Windows 7, and it still works via my android phone (6.0.1). But now, when I try to connect, I get "The PPP link control protocol was terminated."...
  10. PPTP VPN setup

    in Windows 10 Network and Sharing
    PPTP VPN setup: The connection is between my Win10 laptop (build 10586.71) and my home Buffalo router. The connection worked fine before from Windows 7, and it still works via my android phone (6.0.1). But now, when I try to connect, I get "The PPP link control protocol was terminated."...

Users found this page by searching for:

  1. win10 vpn auto connect when windows start

    ,
  2. auto connect windows 10 pptop

    ,
  3. pptp vpn not connecting windows 10