- Importing and Exporting Wi-Fi Settings with Netsh (Windows Vista and Windows 7 Only)
- Importing and Exporting Wired Authentication Settings with Netsh (Windows Vista and Windows 7 Only)
- Importing and Exporting TCP/IP Configuration with Netsh
Importing and Exporting Wired Authentication Settings with Netsh (Windows Vista and Windows 7 Only)
If you're running 802.1X authentication on a wired network, you might find it useful to export and import your wired network profile in Windows Vista or Windows 7. (If you want to back up or transfer the IP and DNS details, however, see the next section. The wired network profile consists of the authentication settings only.)
First, you can print a list of the wired profiles and their settings:
netsh lan show profiles
Then, when you're ready to export a profile, use the following syntax:
netsh lan export profile folder=PATH_TO_FOLDER interface="INTERFACE_NAME"
This command creates an XML file (see Figure 2 for an example) in the folder you specify, and using the name of the specified interface; for example, Local Area Connection.xml.
Figure 2 Example of a wired connection profile exported in XML format.
Keep in mind that identifying an interface is optional. If you don't specify the interface, Windows exports the profiles for every interface. However, you must specify a folder.
You can import a wired profile into another Windows Vista or Windows 7 machine with this command:
netsh lan add profile filename="PATH_AND_FILENAME.xml" interface="INTERFACE_NAME"