How to launch a bat file the second internet disconects? WINDOWS 10


  1. Posts : 79
    WINDOWS 10
       #1

    How to launch a bat file the second internet disconects? WINDOWS 10


    All I want is to have a bat file I made run the second my wireless internet spontaneously disconnects.

    I have tried using task scheduler but I just found out Start only if the following network connection is available is broken after Windows 10 anniversary update. Checked or unchecked, it does not work at all!

    any help would be greatly appreciated!

    and please do not refer me to this Windows Task Scheduler: Trigger an Event When Internet Connects/Disconnects tutorial, it does not work on windows 10, only 8 and bellow!
      My Computer


  2. Posts : 35,403
    Win 10 Pro (21H2) (2nd PC is 21H2)
       #2

    Hi, I've tried that for you on 1903:
    Windows Task Scheduler: Trigger an Event When Internet Connects/Disconnects

    - it works..for me.

    What convinces you it doesn't - in general and for all people- doesn't work in Win 10? Or is it only your experience that it doesn't work?

    (Tested by switching off router using button on router).

    Have you looked at your Event log to see if event id 10001 is listed?

    And kindly don't be angry just because I've referred to what you didn't want people to refer to. If you feel like that, simply ignore my post. Thanks.
      My Computers


  3. Posts : 79
    WINDOWS 10
    Thread Starter
       #3

    OK after extensive research and a little luck I found out this tutorial
    Windows Task Scheduler: Trigger an Event When Internet Connects/Disconnects

    does work but ONLY IF YOU specify as "source" Microsoft-Windows-NetworkProfile
    Last edited by ReallyFrustratd; 13 Sep 2019 at 00:34.
      My Computer


  4. Posts : 35,403
    Win 10 Pro (21H2) (2nd PC is 21H2)
       #4

    Hi, glad you found the discrepancy. That's exactly what that article states:

    n the Begin the task menu, choose “On an event.” Then, choose:Log: Microsoft-Windows-NetworkProfile/Operational
    Source: NetworkProfile
    Event ID: 10000

    The 10000 Event ID is logged when you connect to a network.
      My Computers


  5. Posts : 79
    WINDOWS 10
    Thread Starter
       #5

    dalchina said:
    Hi, glad you found the discrepancy. That's exactly what that article states:
    exactly what that article states: Source: NetworkProfile

    WHAT ACTUALLY WORKS: Source: Microsoft-Windows-NetworkProfile

    in conclusion the article is misleading and or incomplete for windows 10!
      My Computer


  6. Posts : 35,403
    Win 10 Pro (21H2) (2nd PC is 21H2)
       #6

    I can't question your experience on your particular machine.

    I used this, and it works for me:
    How to launch a bat file the second internet disconects? WINDOWS 10-snap-2019-09-13-07.37.12.png
      My Computers


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 11:27.
Find Us




Windows 10 Forums