Admin CMD Prompt - Clean & Reset Network

Page 1 of 4 123 ... LastLast

  1. Posts : 18,044
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
       #1

    Admin CMD Prompt - Clean & Reset Network


    Good evening.

    I know that there are certain Tutorials that cover aspects of this, but this thread is to find out which is the correct order and preferred method to run the below Commands. I have investigated this on MANY MANY sites, and there are constant differences of opinion as to the order of execution.

    I am ONLY interested in the Commands stated below because this is intended to be JUST Low-Level. Obviously the netsh winsock reset will invoke a Restart request . . .

    Code:
    
    ipconfig /release     - Release the Computer’s Current IP Address.
    ipconfig /renew       - Renew the Computer’s IP Address.
    arp -d *              - Delete [ Flush ] the Current Hostname and then Re-Acquire it.
    nbtstat -R            - Purge and Reload the Remote Cache Name Table [ NetBIOS ].
    nbtstat -RR           - Send Name Release Packets to WINS and then Start a Refresh.
    ipconfig /flushdns    - Flush the DNS Cache.
    ipconfig /registerdns - Initiate Manual Dynamic Registration for the DNS Names and IP Addresses.
    netsh winsock reset   - Reset important Network Settings [ Winsock Catalog Configurations ] to their Defaults.

    Thanks.
    Last edited by Paul Black; 18 Jan 2022 at 06:22.
      My Computer


  2. Posts : 5,048
    Windows 10/11 Pro x64, Various Linux Builds, Networking, Storage, Cybersecurity Specialty.
       #2

    Hi Paul -

    I feel that your posted sequence aligns very close to mine.

    In addition, I would also suggest removing all the network device drivers (via Device Manager) before issuing the netsh winsock reset and subsequent reboot.
    Be sure to have all the latest drivers handy just in case W10 doesn't PnP them.

    Hope this helps.

      My Computer


  3. Posts : 18,044
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
    Thread Starter
       #3

    Thanks for the reply @Compumind,

    Compumind said:
    In addition, I would also suggest removing all the network device drivers (via Device Manager) before issuing the netsh winsock reset and subsequent reboot.
    Be sure to have all the latest drivers handy just in case W10 doesn't PnP them.
    Thanks for your input, but the main basis for this is to just perform a low level reset with the correct order of execution as opposed to a deep full reset.

    It probably doesn't matter to a great extent what the order is, as the end result is the same, but, it would be nice to get the order right if there is one.
    Last edited by Paul Black; 18 Jan 2022 at 08:23.
      My Computer


  4. Posts : 5,442
    Windows 11 Home
       #4

    I collected those Windows Network Fix.bat
      My Computer


  5. Posts : 5,048
    Windows 10/11 Pro x64, Various Linux Builds, Networking, Storage, Cybersecurity Specialty.
       #5

    Paul Black said:
    Thanks for your input, but the main basis for this is to just perform a low level reset with the correct order of execution as opposed to a deep full reset.
    Hi Paul -

    Please define Low Level Reset vs. Deep Full Reset.

    Thanks.

      My Computer


  6. Posts : 18,044
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
    Thread Starter
       #6

    Hello @Compumind,

    Compumind said:
    Please define Low Level Reset vs. Deep Full Reset.
    Yes, looking back at what I posted, I realise that it was probably the wrong terminology/definition.

    I just really want to run a pre-set sequence of Commands to clear and reset the Network, without delving into [ running ] ALL aspects that could be pertinent if this was to be performed with ALL the Commands that are relevant to achieve a 100% clear and reset.

    Compumind said:
    I feel that your posted sequence aligns very close to mine.
    Out of interest, being a MS MVP, what is your sequence please?
      My Computer

  7.   My Computers


  8. Posts : 18,044
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
    Thread Starter
       #8

    Thanks @hdmi,

    Unfortunately, that was one of the MANY MANY sites I looked at initially.
      My Computer


  9. Posts : 5,048
    Windows 10/11 Pro x64, Various Linux Builds, Networking, Storage, Cybersecurity Specialty.
       #9

    Paul Black said:
    Out of interest, being a MS MVP, what is your sequence please?
    It's almost the same as yours, just adding the removal of device drivers at the end and then the netsh winsock reset.

    Does this answer your question or is there more to it?



    P.S. There is an option to run CCleaner and do a registry scan and clean after reboot. Only use default settings and it is probably unnecessary in the first place.
      My Computer


  10. Posts : 18,044
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
    Thread Starter
       #10

    Thanks again for your input @hdmi, it is appreciated,

    I am surprised that there has NOT been more interest or input from other members here.



    Some Background Information:

    The reason that I have posted this thread, is because when I was investigating to find the correct or preferred order of running the Commands, I came across MANY that showed a different order for the Commands depending on what OS was running [ XP, Vista, Win 7, Win 10, MAC ]. From my understanding of the results found, regardless of which order the Commands are run, I assume that the end result will still be the same. Even taking this into account, it would be nice to know if there is a correct or preferred order for Win 10, and if one specific order, will do a better job time wise or overall than another.
      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 00:31.
Find Us




Windows 10 Forums