How to edit Local Area Network settings in the Registry


  1. Posts : 7
    Windows 7 Ultimate 32 bit
       #1

    How to edit Local Area Network settings in the Registry


    I have a need to alter Local Area Network settings in the Registry.

    I send an installation file to customers which should automagically configure several settings in the Registry.

    I need to simplify the traffic on the LAN because the remote controller cannot (yet) handle the 'normal' network requests sent by Windows either on seeing a new NIC connection and/or periodically scanning for new network connections.

    I can disable LLMR, SSDP, gratuitous ARP requests, etc., but haven't found how to set a fixed IP for the LAN in the Registry.
      My Computer


  2. Posts : 2,468
    Windows 7 Ultimate x64
       #2

    Use the netsh command to configure all the network settings from the command prompt, incluiding automating the whole process.
    See here for some quick examples: How to Change Your Computers IP Address From the Command Prompt
      My Computer


  3. Posts : 7
    Windows 7 Ultimate 32 bit
    Thread Starter
       #3

    That's just what I'm trying to avoid by editing the Registry from an install script.
    Leave the settings to an end customer who doesn't know one end of a pen from the other is too risky.

    Edit:
    OK, sorry for my snappy response, I can see where you are going but it still seems risky. I'll give it a try and see if I can succeed.
      My Computer


  4. Posts : 2,468
    Windows 7 Ultimate x64
       #4

    You don't edit network settings by tampering on the registry directly. You just use the interfaces Windows provides to change those settings.

    By using the command line version, your install script can simply invoke those commands automatically and change every setting as it would be done by the GUI. This is the main purpose of the netsh command.

    Of course you don't leave it to the end users to handle the configuration. Your installation procedure does that automatically.
      My Computer


  5. Posts : 7
    Windows 7 Ultimate 32 bit
    Thread Starter
       #5

    Alejandro85 said:
    Use the netsh command to configure all the network settings from the command prompt, incluiding automating the whole process.
    See here for some quick examples: How to Change Your Computers IP Address From the Command Prompt
    Ok, thanks. That sorts IPv4 but I still need to disable most, if not all the other services _ only for "Local Area Connection", WiFi still needs to work.
    e.g it's easy to disable Client for Microsoft Networks in LAN properties manually but even though I can find the Eth0 IP address in Registry, I haven't found this M$ Client.
    I looked at nvspbind but although it may do what I need I cannot fathom how.
      My Computer


  6. Posts : 7
    Windows 7 Ultimate 32 bit
    Thread Starter
       #6

    OK, for anyone else mvspbind has the answer :)
    This the best explanation I could find
    https://stackoverflow.com/questions/33971179/enabling-disabling-network-adapter-property-programmatically
      My Computer


 

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

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