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.

WindowsbackupnetshnetworkMedium risk
Run netsh dump > net-backup.txt to save your settings, and netsh -f net-backup.txt to restore them later.

01Command

Command
$ netsh dump > net-backup.txt

02What 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

RiskMedium risk
RequirementsRun Command Prompt as administrator so the restore script can change adapter settings.
!Warning: The backup contains IP and DNS details of your network; restoring it on a different PC or network can break that machine's connectivity.

04Undo

Undo
$ netsh -f net-backup.txt

05Sources

  • netsh - Windows CMD
    SS64 · technical · 2026-09-17
    Evidence: 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