# Saving and Restoring an Adapter's Configuration Settings

The Save and Restore Command Line Tool is a VBScript (SavRes.vbs) that allows you to copy the current adapter and team settings into a standalone file (such as on a floppy disk) as a backup measure. In the event of a hard drive failure, you can reinstate most of your former settings. This script does not save/restore the network drivers or the protocol addresses.

Restoring network configuration settings can only be done on the same system with the same configuration on which the save was performed.

| NOTES: Only adapter settings are saved (these include ANS teaming, Express teaming and VLANs). The adapter's driver and IP address are not saved.
| When you save the adapter settings, the script removes all the configured teams and VLANs. Run the script again to restore your settings. The preferred primary adapter setting is not saved or restored. You must manually change the preferred primary adapter setting after restoring the team settings.

## Supported Operating Systems

- Microsoft* Windows* 2000, Windows XP, Windows Server 2003

## Command Line Syntax

> cscript SavRes.vbs save|saveall|restore [filename]

SavRes.vbs has the following command line options:

save | Saves adapter and team settings that have been changed from the default settings. When you restore with the resulting file, any settings not contained in the file are assumed to be the default.
saveall | Saves all adapter settings, even those that are the default values.
restore | Restores the settings.
filename | The file to save settings to or restore settings from. If no filename is specified, the script default to WmiConf.txt.

## Examples

### Save Example

To save the adapter settings to a file on a floppy diskette, do the following.

1. Open a Windows Command Prompt.
2. Navigate to the directory where SavRes.vbs is located.
3. Type the following:

cscript SavRes.vbs save a:\settings.txt

### Restore Example

To restore the adapter settings from a file on a floppy diskette, do the following:

1. Open a Windows Command Prompt.
2. Navigate to the directory where SavRes.vbs is located.
3. Type the following:

cscript SavRes.vbs restore a:\settings.txt

`Last modified on 6/10/04 8:02a Revision 4`