Discussion Locked

Registry entry for changing IP+DNS+WINS

0 helpful
4 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
How do I create a .reg key so I can easily change between static IP configurations ?

4 replies

by Member 35480413

This will do the DNS, modify for your own settings:
REGEDIT4

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters]
"DataBasePath"=hex(2):25,53,79,73,74,65,6d,52,6f,6f,74,25,5c,53,79,73,74,65,6d, 33,32,5c,64,72,69,76,65,72,73,5c,65,74,63,00
"Domain"="mydomain.ie"
"Hostname"="mycomputer"
"NameServer"="1.1.1.1 10.1.1.1"
"ForwardBroadcasts"=dword:00000000
"IPEnableRouter"=dword:00000001
"SearchList"=""
"EnableSecurityFilters"=dword:00000000

This will do your wins, modify for your own adapter

REGEDIT4

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NetBT\Adapters\N1001]
"NameServer"="1.50.1.1"
"NameServerBackup"="1.70.1.1"

This will do your IP address, it is in hex

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\{4255589B-B084-4583-9A47-13A468E295F3}\Parameters\Tcpip]
"EnableDHCP"=dword:00000000
"IPAddress"=hex(7):32,00,35,00,2e,00,32,00,2e,00,31,00,2e,00,34,00,00,00,00,00
"SubnetMask"=hex(7):32,00,35,00,35,00,2e,00,32,00,35,00,35,00,2e,00,32,00,35, 00,35,00,2e,00,30,00,00,00,00,00
"DefaultGateway"=hex(7):32,00,35,00,2e,00,32,00,2e,00,31,00,2e,00,32,00,35,00, 30,00,00,00,00,00
"DhcpIPAddress"="0.0.0.0"
"DhcpSubnetMask"="255.0.0.0"
"DhcpServer"="255.255.255.255"
"Lease"=dword:00000e10
"LeaseObtainedTime"=dword:3a65a420
"T1"=dword:3a65ab28
"T2"=dword:3a65b06e
"LeaseTerminatesTime"=dword:3a65b230

The ip address above is 25.2.1.4
mask is 255.255.255.0
gateway is 25.2.1.250

The first 2 reg files worked on NT 4 and the last one is from my windows 2000 machine

Regards,
Pat

by marc

I'm sorry, I created a .reg file with the values I wanted and imported them, didn't work.

This discussion is closed to new replies.