To backup a configuration :
To restore a configuration :
netsh -c interface dump > c:\configs\officeinterface.txt
When using NetShell to change network settings it doesn't require a reboot. One can also use hardware profiles to save the network configuration, but it will require a reboot to change from one hardware profile to another.
netsh -f c:\configs\officeinterface.txt
Repair/reinit the TCP/IP protocol if it has gone bad (Useful as WinXP cannot uninstall the TCPIP stack):
Repair/re-init the Winsock interface if it has gone bad (Available in WinXP SP2 and Win2k3 SP1):
netsh int ip reset
More info MS KB299357
Note WinXP includes an option called Alternative Configuration, which is used when in a network without an available DHCP server, without needing to fiddle with netsh.
netsh winsock reset
More info Repair Winsock and TCP/IP in WinXP/Win2k3 (MS KB811259)
More info Repair Winsock and TCP/IP in Win2k (MS KB837333)
More info Repair network for a Win2k Domain Controller (MS KB299451)
More info Repair network for a Win2k3 Domain Controller (MS KB325356)
- On the Start-menu, click Control Panel.
- Click Network and Internet Connections and click Network Connections.
- Right-click the wanted connection and select Properties.
- Select Internet Protocol (TCP/IP) and press Properties.
- If the normal configuration is DHCP, then the Alternate Configuration-tab should be available. More info MS KB283676
More info Using NETSH to Change from Static IP to DHCP in Windows 2000 - (MS KB257748)
More info NetSh Dump Does Not Completely Configure and Enable the RRAS (MS KB254249)
More info How to Use the Netsh Utility to Export and Import DHCP Scopes (MS KB281626)