Back Up and Restore Network Settings (netsh dump)
Export every adapter, IP and DNS setting to a text file, then replay it to restore the configuration.
01Command
$ netsh dump > net-backup.txt02What it does
netsh dump writes the entire network configuration — adapter settings, static IPs, DNS servers and more — as a ready-to-run script. Keeping this file before making risky changes means you can always get back to a working state with one command. Restore it with netsh -f.
03Risk
04Undo
$ netsh -f net-backup.txt05Sources
- netsh - Windows CMDEvidence: Documents netsh dump for scripting the current configuration to a text file and netsh -f to replay (restore) it.
Last verified: 2026-09-18 · Category: Network
06Related solutions
Purge cached DNS lookups so Windows re-resolves hostnames from scratch — the fix for 'the new server is live but my browser still hits the old one'.
The nuclear option for broken connectivity: rebuild Winsock and the TCP/IP stack to defaults when adapters show 'no internet' despite everything else working.
Enumerate every wireless network Windows remembers, inspect a profile's settings, and export profiles for backup or transfer to another PC.