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:
Import the IP settings from the file
Use the following command:
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.
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
Use the following command:
Code:
netsh exec yourfilename.txt
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.