General discussion

Locked

Registry entry for changing IP+DNS+WINS

By marc ·
How do I create a .reg key so I can easily change between static IP configurations ?

This conversation is currently closed to new comments.

4 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

Registry entry for changing IP+DNS+WINS

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)2,00,35,00,2e,00,32,00,2e,00,31,00,2e,00,34,00,00,00,00,00
"SubnetMask"=hex(7)2,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)2,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

Collapse -

Registry entry for changing IP+DNS+WINS

by marc In reply to Registry entry for changi ...

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

Collapse -

Registry entry for changing IP+DNS+WINS

by marc In reply to Registry entry for changi ...

Point value changed by question poster.

Collapse -

Registry entry for changing IP+DNS+WINS

by marc In reply to Registry entry for changi ...

This question was closed by the author

Back to Windows Forum
4 total posts (Page 1 of 1)  

Related Discussions

Related Forums