none
How to block the VPN connection lost - redialing pop up

    Question

  • Can the VPN be set to redial in the background and/or hide the pop-up.  When the pop up happens, it makes itself the active window, even though I have unchecked "Display progress while connecting".  I have it set for automatic redial (reconnect) and the time to redial is set for 1 second.  Mercifully, this limits the time the window is up.  However, it is still extremely annoying:

    I use the Windows 7 VPN connection to connect to work.  Sometimes I can lose connections as frequently as every few minutes.  This may go on for 1/2 an hour, before things settle down and it stays connected for hours.  But when it is popping up repeatedly, it is terrible.  If I happen to be typing (which I am usually doing) then frequently I will accidentally activate the window in some way.  I think I activate it to go into diagnostics, because the UAC windows pops up next.  Needless to say, this brings my work to halt and interrupts my train of thought, etc.  I am to the point where I am furious with this window.

    This status message is not important enough to have to pop-up in my face everytime there is a briefly dropped connection.  If my wireless loses connections, it behaves itself and displays a fairly unobtrusive message in the lower right hand corner.  Why can't the VPN take a hint from the wireless manager and do the same?

    Are there settings that will make this windows either behave like other system messages, or perhaps simply go about it's work in the background without having to pop up a dialogue window?  I have already told it to redial, so there is absolutely no reason for it to pop up a dialogue window asking me if I want to redial.  

    If this cannot be fixed in windows, can anyone recommend another VPN client that will work with a Windows Network and that would be better behaved?

    Thanks,
    Dave 
    Wednesday, March 03, 2010 5:02 PM

Answers

  • Hi Dave,

     

    May I know if there is an ISA server on your network and what is the VPN type?

     

    Regarding the VPN drop issue, please check the following:

     

    1.    When the connection drops, are there any error messages appeared? Or, you can check Event Log to see there are any related errors.

     

    2.    Update the NIC driver.

     

    3.    If this computer is connecting to a router, please bypass the router and connect to the network directly to see if it works.

     

    4.    Boot the system to Safe Mode with networking, then establish the VPN connection and keep monitoring if the issue reoccurs.

     

    In addition, I would like to share the following with you for your reference:

     

    Troubleshooting Vista VPN problems

     

    Hope this helps. Thanks.


    Nicholas Li - MSFT
    Tuesday, March 09, 2010 6:27 AM
    Moderator

All replies

  • Hi Dave,

     

    May I know if there is an ISA server on your network and what is the VPN type?

     

    Regarding the VPN drop issue, please check the following:

     

    1.    When the connection drops, are there any error messages appeared? Or, you can check Event Log to see there are any related errors.

     

    2.    Update the NIC driver.

     

    3.    If this computer is connecting to a router, please bypass the router and connect to the network directly to see if it works.

     

    4.    Boot the system to Safe Mode with networking, then establish the VPN connection and keep monitoring if the issue reoccurs.

     

    In addition, I would like to share the following with you for your reference:

     

    Troubleshooting Vista VPN problems

     

    Hope this helps. Thanks.


    Nicholas Li - MSFT
    Tuesday, March 09, 2010 6:27 AM
    Moderator
  • The moderator has efficiently bypassed the actual question and supplied only counter-questions and then tagged the thread as answered. Is that really how things work? I have 1:1 the same issue, and this is very much related to the issue here http://social.answers.microsoft.com/Forums/en-US/w7desktop/thread/4ee5be7d-31ef-493b-b092-f6f6139f99cd?ppud=4 where I also brought this up. It is deeply sad to see such utter ignorance of a very real and existant issue done by people posting in the name of Microsoft. Please address the question asked: Is there a way to suppress the DUN popup on redial / disconnection or at least prevent it from stealing focus, which, supposedly, Win7 was programmed to do in the first place?
    Tuesday, June 15, 2010 5:05 PM
  • Hi,
    I think, that it's a bad answer for question "How to block the VPN connection lost - redialing pop up".
    It maybe helps to create a better connection, but reconnection dialog will pop up further.
    I need solve the same – simply hide reconnection dialog.
    Do you have any idea?

    Thanks

    Tuesday, January 03, 2012 8:16 AM
  • Hi,

    I have searched the internet for an answer to this question.

    I am an administrator at a company that works with remote modem hardware. We can use a dialup connection to our hardware, but with this issue both in XP, Vista and Windows 7 it is basically impossible to work with the computer at the same time as you are attempting to connect to a unit.

    A solution to this problem would allow us to work with Windows as it is ment to be worked with, the way it is right now is not fun.

    Regards

    Friday, March 16, 2012 9:31 AM
  • I know this post is from ages ago but it's at the top of a google search.  I've spent a bunch of time fixing this so I'll share...





    #1) get you're vpn setup with normal windows procedure.  Next turn off "redial if dropped" in the options menu.

    #2) copy/paste this code into notepad and save as vpnkeepalive.ps1 (make sure to fill in an ip address from your VPN network, plus VPN name & credentials)  :

    $ip = "192.168.100.1"

    $result = gwmi -query "SELECT * FROM Win32_PingStatus WHERE Address = '$ip'"
    if ($result.StatusCode -eq 0) {
        Write-Host "$ip is up."
    }
    else{
        Write-Host "$ip is down."
        Write-Host "Disconnecting..."
        rasdial.exe DegreeVPN /DISCONNECT
        Write-Host "Connecting..."
        rasdial.exe vpnname123 username123 password123 
    }

    Executing that powershell will turn your VPN back on if you are disconnected.  You'll notice an annoying blackbox when it runs.  That's OK just save it in you're C drive or any other path that will be used on step 3.  (You will need to enable powershell scripts to run, they are turned off by default.  google search for "Set-ExecutionPolicy RemoteSigned")

    )

    #3)  To get rid of that blackbox use a VBS wrapper script.  Copy/paste this into a text file named vpnkeepalivehidden.vbs 

    command = "powershell.exe -nologo -command C:\vpnkeepalive.ps1"
    set shell = CreateObject("WScript.Shell")
    shell.Run command,0


    Running that script file will restart your vpn connection without the annoying black box.



    #4) Schedule vpnkeepalivehidden.vbs with windows task scheduler to run on a 1 minute increment.  Just google search "how to use windows task scheduler"


    • Proposed as answer by blah73 Thursday, June 06, 2013 7:27 PM
    Thursday, June 06, 2013 7:27 PM