Set static IP (Registry File)

This code can be found in Chapter 1 of Windows Server 2003 Networking Recipes

Purchase XP Cookbook or Networking Recipes for only $25 plus shipping! While supplies last.

Find out how to download all of the Registry File code from this site.

[HKEY_LOCAL_MACHINE\SYSTEM\Current Control Set\
Services\Tcpip\Parameters\Interfaces\{<Interface GUID>}]
"IPAddress"=REG_MULTI_SZ:"<IP Address>"

[HKEY_LOCAL_MACHINE\SYSTEM\Current Control Set\Services\
Tcpip\Parameters\ Interfaces\{<Interface GUID>}]
"SubnetMask"=REG_MULTI_SZ:"<Subnet Mask>"

[HKEY_LOCAL_MACHINE\SYSTEM\Current Control Set\Services\
Tcpip\Parameters\ Interfaces\{<Interface GUID>}]
"DefaultGateway"=REG_MULTI_SZ:"<Default Gateway>"

This code has been viewed 2805 times.

New from the creators of TechTasks.com: StatSheet.com