Modify
Commands
ipconfig /flushdns
Purge DNS Resolver Cache
arp -d 192.168.0.1
Remove ARP mappings for 192.168.0.1 + on all interfaces.
nbtstat -RR
(Flush NetBIOS Cache) Sends Name Release packets to WINS and starts Refresh
netsh interface ip set
Sets IP and default gateway for specified interface.
netsh interface ipv4 set
Sets IP and default gateway for specified IPv4 interface.
netsh interface ipv6 set
Sets IP and default gateway for specified IPv6 interface.
netsh interface ip set dnsservers
Sets DNS servers for specified interface.
netsh interface ipv4 set dnsservers
Sets IPv4 DNS servers for specified interface.
netsh interface ipv6 set dnsservers
Sets IPv6 DNS servers for specified interface.
netsh wlan set hostednetwork
Sets Hosted network settings.
netsh interface ip add
Adds IP to specified interface.
netsh interface ipv4 add
Adds IPv4 to specified interface.
netsh interface ipv6 add
Adds IPv6 to specified interface.
netsh interface ip delete
Deletes IP from specified interface.
netsh interface ipv4 delete
Deletes IPv4 from specified interface.
netsh interface ipv6 delete
Deletes IPv6 from specified interface.
Set-NetIPAddress
Modifies IP config properties.
Set-NetAdapter
Modifies basic network interface properties.
New-NetIPAddress
Adds IP to network interface.
Remove-NetIPAddress
Removes IP from network interface.
Set-DnsClientServerAddress
Sets DNS servers for interface.
Enable-NetAdapter
Enables a network interface.
Disable-NetAdapter
Disables a network interface.
Enables static IP for network interface:
Enables DHCP on network interface:
Sets DNS server search order for network interface:
Removes static DNS entry of 192.168.118.1 on the local interface:
Set static IP Address; Subnet; Gateway; GatewayMetric:
Set a static DNS for local interface:
Registry Locations
Network Profile Registry Values
Queries current network profiles:
Public
0 (ZERO)
Private
1
Domain
2
All
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters
This key contains a variety of settings that affect the TCP/IP protocol, including DNS, IP, and WINS settings.
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces{Interface GUID}
Contains settings specific to each network interface, such as IP address, subnet mask, and DNS server addresses.
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NetBT\Parameters
Settings for NetBIOS over TCP/IP (NetBT) configuration.
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\DNSClient
Contains DNS client configuration settings, often used in Group Policy settings.
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters
Similar to the Tcpip\Parameters key, but specifically for IPv6 configuration.
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkCards
Information about each network card installed on the system.
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings
Contains settings related to Internet Explorer and overall internet connectivity settings, including proxy settings.
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp
Contains settings for the Remote Desktop Protocol (RDP), including port configuration.
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy
Configuration settings for the Windows Firewall.
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Rpc\Internet
Contains settings for configuring RPC over Internet ports.
Last updated
Was this helpful?