After using the system for a period of time, various data will be generated, such as hardware drivers, software settings, Wi-Fi passwords and so on. We need to backup these information frequently, export the driver backup for quick identification of hardware after reinstallation, export system information for viewing the specific configuration of the computer and so on. However, it takes time and effort to backup these data manually, and many of them can’t be backed up manually, so we might as well use the command line tool that comes with Windows 10 system to achieve quick backup.
One-Click Export of System Information
During daily system maintenance, we often need to read system information. For example, Microsoft releases important system patches every month, if you want to check what patches have been installed on your system, or if you want to quickly check whether your system has missed any patch, the conventional way is to open “Add→Uninstall” to check it manually. Now you can quickly export the system information (including installed patch information) with the help of Systeminfo command.
Start the command prompt as administrator, then type “systeminfo >>d:1.txt”, so that the current system information file will be exported to the file “d:1.txt” (Figure 1).
Figure 1 Exporting System Information
Open the file with Notepad and switch to “Patches”, where all the patches installed on the machine are listed. If you want to check if a patch is installed, just click “Edit – Find” and enter the patch number directly in the Find box to find it (Figure 2).
Figure 2 Finding patches
Of course, we can also extract any other system information we need, for example, rookies can directly copy the processor information and then transfer the text to a professional friend to determine. By “Initial installation date:” to know when your system was installed and other information.
Hardware driver selective backup
We know that the hardware can only be recognized by the system after the installation of the corresponding driver, for Windows 10 does not have built-in drivers, we have to export the backup before reinstallation. Driver backup can now be done with the help of the “Dism” command. Run the command prompt as administrator, type “dism /online /export-driver /destination:D:Backup”, so that you can automatically backup all the drivers on the machine to the D:bckup directory. Open the backup directory and you can see many directories named by driver names, which are the individual driver files (Figure 3).
Figure 3 Backup drivers
So that you need to reinstall the system or error uninstallation, upgrade the driver needs to restore the original driver, then you can use the PE boot disk, boot into the PE system after the implementation of “dism /online /Add-Driver /Driver:D:Backup /Recurse” to restore the driver and you can. Because Windows 10 has a lot of built-in drivers, if you just need to install drivers for third-party hardware, you can open Device Manager, select the hardware you need to install drivers for, double-click to open it, and select “Update Driver”. In the pop-up page, select the location of the backup driver, while selecting the “Include subfolders” for manual installation of the driver can be (Figure 4).
Figure 4 Restore driver
One-click backup of Wi-Fi information
Wi-Fi is essential for laptops and tablets, and to successfully connect to Wi-Fi, you need to know the specific hotspots and passwords. For many newbies, it is difficult to check the name and password of the connected hotspots, especially the Wi-Fi shared with neighbors, and how to quickly restore Wi-Fi information after reinstalling the system? You can try the following method. First, start Notepad and type the following command and save it as “aa.bat”.
rem set wireless profile
set wlan_profile_folder=. Wireless network profile
rem Create %wlan_profile% directory in the system directory
if not exist %wlan_profile% (md %wlan_profile%)
rem Export the current network configuration to the above profile
netsh wlan export profile folder=%wlan_profile% key=clear
By running the above batch process, the current wireless network profile will be automatically exported to “C:WindowsSystem32%wlan_profile%” and the SSID name and password of the hotspot can be easily seen by opening the file (Figure 5).
Figure 5 View the exported file
So that when we reinstall the system and need to restore the WiFi configuration, first copy the above exported file to the original location, then run the command prompt as administrator and type “set wlan_profile_folder=. Wireless network profile for %%i in (%wlan_profile_folder%*.xml) do (netsh wlan add profile filename=”%%i”)” to restore it, and then you can use it without re-entering WiFi password, for shared Neighborhood broadband users, save the inconvenience of asking each other for the password after each reinstallation (Figure 6).
Figure 6 Recover password
The netsh command in the above batch process is the system’s own network processing command, which can also perform a lot of operations. For example, if you have a laptop and often use the network at home and at work, you can use the command “netsh interface ip dump > c:IP.txt” to quickly backup the network, and the current network configuration will be automatically output to C:IP.txt (Figure 7).
Figure 7 View the exported configuration file
In this way, we can export the current network configuration file on our home and company computers separately, and when we need to use the network in a different network environment, we can quickly import the previously configured network file to surf the Internet normally by typing “netsh exec c:IP.txt” at the command prompt (Figure 8).
Figure 8 Importing a configuration file