Modify Network Adapter Settings in Windows Registry
Modifying network adapter interface configurations directly through
the Windows Registry Editor (regedit) allows administrators
to configure network parameters—such as IP addresses, subnet masks,
default gateways, and DNS servers—without relying on the standard
Windows graphical user interface. This method is useful for remote
administration, batch scripting, or troubleshooting corrupted network
components.
Step 1: Open the Registry Editor
- Press
Windows Key + Rto open the Run dialog. - Type
regeditand pressEnter. - Click Yes if prompted by User Account Control (UAC).
Step 2: Navigate to the Network Interfaces Key
In the Registry Editor, navigate to the following path using the left sidebar:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces
Under the Interfaces key, you will see several subkeys
represented by unique Globally Unique Identifiers (GUIDs), such as
{12345678-ABCD-1234-ABCD-1234567890AB}.
Step 3: Identify the Correct Adapter
Each GUID folder represents a distinct network interface on your system. To find the specific adapter you want to configure:
- Click on each GUID subkey.
- Look at the values in the right pane for identifiers such as
IPAddress,DhcpIPAddress, orDefaultGateway. - Match the displayed values with the current settings of the adapter
you intend to modify (which can be checked via
ipconfig /allin Command Prompt).
Step 4: Modify Key Configuration Values
Double-click any of the following registry values in the right-hand pane to modify its data:
- EnableDHCP: Set to
1to enable dynamic IP assignment via DHCP. Set to0to use static IP configuration. (Type:REG_DWORD) - IPAddress: Enter the static IP address. For static
configurations, this must be a
REG_MULTI_SZ(Multi-String Value) with each IP listed on a new line. - SubnetMask: Enter the corresponding subnet mask
(e.g.,
255.255.255.0). (Type:REG_MULTI_SZ) - DefaultGateway: Enter the gateway IP address.
(Type:
REG_MULTI_SZ) - NameServer: Enter static DNS server addresses
separated by commas (e.g.,
8.8.8.8,8.8.4.4). (Type:REG_SZ)
Note: If setting a static IP, ensure DhcpIPAddress,
DhcpSubnetMask, and DhcpDefaultGateway are
left alone, as Windows updates them automatically when DHCP is
enabled.
Step 5: Apply the Changes
Registry changes to network adapters do not take effect immediately. To apply the new configuration:
Open Command Prompt as Administrator.
Disable and re-enable the network adapter using PowerShell or
netsh:netsh interface set interface "Ethernet" disable netsh interface set interface "Ethernet" enableAlternatively, restart the system to reload the network stack with the updated registry values.