W10 network reset - Anniverdary build


  1. Posts : 8
    Windows 10
       #1

    W10 network reset - Anniverdary build


    Hi all,

    As we all know, if we select the Start button, then select Settings > Network & Internet > Status > Network reset.
    On the Network reset screen, select Reset now > Yes to confirm, this will uninstall your network card and prompt you to reboot the pc. Upon Windows starting up again, the network card you just installed will install again, and your connection will be live once more.

    My question is this: Does any one know the command to do this from the command line ?

    I building a pc, where the end user will not need to know how to do this, or why it has to be done. All I want them to do is click on an icon on the desktop that runs a batch file and does it all for them.

    TIA
      My Computer


  2. Posts : 7,254
    Windows 10 Pro 64-bit
       #2

    This might help.
      My Computers


  3. Posts : 8
    Windows 10
    Thread Starter
       #3

    Thanks swarfega, but that tells me how to uninstall the network card, after all other options are exhausted.

    I wish to know how to run the equivalent of the network reset from the command line... surely it is possible ????
      My Computer


  4. Posts : 5,478
    2004
       #4
      My Computer


  5. Posts : 7,254
    Windows 10 Pro 64-bit
       #5

    fantom105 said:
    Thanks swarfega, but that tells me how to uninstall the network card, after all other options are exhausted.
    I wish to know how to run the equivalent of the network reset from the command line... surely it is possible ????
    If you read the whole article it shows you how to use the netsh command.
      My Computers


  6. Posts : 8
    Windows 10
    Thread Starter
       #6

    Swarfega, are you thinking that I start with netsh winsock reset and press Enter?

    To me, following all the commands listed will do all the resets but to the best of my knowledge it won't 'uninstall' the network card.... but maybe I'm wrong??
      My Computer


  7. Posts : 5,478
    2004
       #7

    What are you trying to do?

    Network reset (as you describe in your first post) is not going to "uninstall your network card" as you put it. It doesn't do that. Nothing short of physically pulling the card out will "uninstall" it.

    You can use the netsh command to reset various things but it isn't going to uninstall it the card. You could uninstall the drivers using pnputil or dsim but I can't imagine for the life of me why you would want to so perhaps I'm misunderstanding your question.

    It would help if you explained what your goal was and why do you want to make a batch file to change networks without the user knowing.
      My Computer


  8. Posts : 8
    Windows 10
    Thread Starter
       #8

    Thanks all for replies.

    Maybe I'm not wording this correctly.

    In w10 there is a bug where at a some random stage you won't be able to browse the internet. You can reset your TCP/IP, flush dns etc etc as many times as you wish but it won't fix the problem.

    The manual solution is goto device manager,and uninstall your active network card wifi/lan, reboot and let windows reinstall it again.

    That is what the network reset button does. It's a known fault and the network reset button is the MS way to fix it.

    It has happened to me, and on machines belonging to friends (inc machines upgraded to w10 and machines that were bought new with w10 preinstalled)

    Quite simply, I wish to run 'network reset' from a batch file.
      My Computer


  9. Posts : 5,478
    2004
       #9

    I see. From swarfega's link you could put these in a batch file to reset the network adapter.

    Code:
    netsh winsock reset
    netsh int ip reset
    ipconfig /release
    ipconfig /renew
    ipconfig /flushdns
    I'm not sure how you'd do the last step of automatically removing the network adapter.

    It looks like you could download devcon and use that but it seems you need to specify the device.

    Something like
    Code:
    devcon -r 
    remove "@PCI\VEN_10B7&DEV_9200&SUBSYS_00D81028&REV_78\4&19FD8D60&0&58F0" 
    but you'd have to replace the bit in red with your device which you can get from devcon listclass net Source

    Can't think of a better way I'm afraid. Perhaps someone else can.
      My Computer


 

  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 22:29.
Find Us




Windows 10 Forums