Save and Restore Your Network Config

Statut
N'est pas ouverte pour d'autres réponses.

Xavier Mustin

Administrator
Staff member
#1
The windows utility netsh (network shell) is a command that allow us to change network settings. A common use is to reset the TCP/IP stack to its default state.
Now, let's use this command to save the interface settings in a text file, whether as a security measure or a means to quickly export the settings to other computers.

Export the current IP settings to a text file

Use the following command:
Code:
netsh -c interface dump > yourfilename.txt
Import the IP settings from the file

Use the following command:
Code:
netsh exec yourfilename.txt
Conclusion

The txt file really is a script that can be executed by netsh to restore the configuration. It is possible to open it and edit it with Notepad, but be careful not to modify its structure.
 
Statut
N'est pas ouverte pour d'autres réponses.
Haut