Netsh command Backup and restore network settings _dos/bat

Source: Internet
Author: User
To archive, back up, or configure other servers, Netsh can also save the configuration script in a text file.

Run netsh command

There are two scenarios for running Netsh commands.

1. Run the netsh command locally

Click "Start → run" and enter the cmd command in the Run dialog box and click [OK], then enter the Netsh command at the command prompt.

2. Remote Run netsh command

To run the Netsh command on a remote Windows Server server, first use Remote Desktop Connection to connect to a Windows server server that is running Terminal Services, followed by the same actions that are used locally for Netsh commands.

Backup/Restore

Server network Settings

When it comes to network settings, you must think of IP addresses, subnet masks, gateways, DNS, and so on (these are mainly interface IP configuration parameters). For a normal computer, the network settings have only interface IP configuration parameters, and for the server, the network settings include not only the interface IP configuration parameters mentioned earlier, but also interface configuration, port agent configuration, remote access configuration, routing configuration, DNS proxy configuration, NAT configuration, DHCP Relay Agent configuration, and so on. The above network setting parameters, depending on the special role of the server in the network, such as: Campus network with Windows Server servers responsible for connecting the extranet, and connecting the campus multiple subnets, then the server must set up remote access configuration, routing configuration, DNS Agent configuration and NAT configuration.

1. Network settings for the backup server

One of the most frequent tasks that an experienced network administrator can do is to back up. Only backups are made, and the network can be recovered quickly and promptly when there is a destructive disruption. Network Setup backup operation: netsh dump >bak12.txt, which allows you to back up your network settings to a bak12.txt file, which is a text file.

When you make adjustments to your network settings, you should back up them immediately.

2. Restore the server's network settings

When you make network settings adjustments, you can use Backup to quickly restore network settings If an operation error occurs or if the server network fails. How to: netsh exec bak12.txt.

Backing up server network settings through the Netsh command is particularly easy and efficient, and requires no additional software support, and is ideal for network administrators to back up and restore server network settings.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.