Microsoft KB Archive/244810

= Restoring a Windows 2000 WINS Database from Other Backup Sources =

Article ID: 244810

Article Last Modified on 3/1/2007

-

APPLIES TO


 * Microsoft Windows 2000 Advanced Server
 * Microsoft Windows 2000 Datacenter Server
 * Microsoft Windows 2000 Server

-



This article was previously published under Q244810



SUMMARY
This article describes how to restore a WINS database from a backup. You may not be able to use only the Restore Database function in the Microsoft Windows Internet Naming Service (WINS) MMC Snap-in to restore a WINS database. This article assumes that you know how to use the WINS MMC snap-in to access the WINS Server information.



Backing Up the WINS Database
To back up the WINS database, follow these steps:  Click Start, click Run, type mmc in the Open box, and then click OK. If the WINS server does not appear in the interface, add it. To do so, click WINS, right-click Add Server, and then type either the NetBIOS name or the IP address of the WINS server you want to back up. Make sure that the green arrow appears over the icon to the left of the WINS server name. The green arrow indicates that the service is running. Right-click the server that you want to back up, and then click Properties. On the General tab, type the name of the database backup and the default backup path. Do not use a network drive. Microsoft recommends the following location:

%Systemroot%\System32\Wins

 Right-click the WINS server that you want to back up, click Backup Database, click OK, and then close the dialog box.

Unless you designated a folder under the main folder, WINS automatically creates a Wins_bak folder to contain all the backup files. WINS backs up the database and you are prompted with the following message:

The database backup completed successfully.

The Wins_bak folder contains a folder that is named New. The New folder contains the following three files:  J500000 (  is the version number)</li> Wins.mdb</li> Wins.pat</li></ul> </li> If you want WINS to back up the database every time you shut down or restart the WINS server, click to select the Backup database during server shutdown check box.</li> You must manually back up the WINS database before the automatic backup schedule starts. WINS automatically backs up the database every three hours to the backup location that you specified earlier in this article.</li></ol>

Note Frequently, network administrators back up the same files in the WINS backup location to another media such as a tape drive. The J500000, Wins.mdb and Wins.pat files are put in the Wins_bak\New folder. If you want to back up the WINS database to tape, you must select these files or the backup folder.

Restoring a WINS Database from the Configured Backup Location
To restore the WINS database from the default location, follow these steps: <ol> Stop the WINS service. To do so, from the WINS MMC Snap-in, right-click the server, click All Tasks, and then click Stop.

Note When the WINS service stops, the green arrow that was to the left side of the server name changes to a red circle with a white 'X' mark inside it.</li> Right-click the WINS server that you want to restore, and then click Restore Database.</li> Locate the folder where the backup files are located, and then click OK.

Note Use the parent folder of the Wins_bak folder.</li> The WINS database now includes all the entries that the backup copy of the Wins.mdb file contained. This information is as current as the last automatic or manual WINS database backup.</li> You can now jetpack the database to make sure that the database compacted successfully without errors.

For additional information about how to jetpack a WINS database, click the following article numbers to view the articles in the Microsoft Knowledge Base:

145881 How to Use Jetpack.exe to Compact a WINS or DHCP Database

172570 Jetpack Error Codes for Windows NT 4.0

</li></ol>

Restoring a WINS Database from Other Media
To restore a WINS database from other media sources such as a tape backup, you must copy the J500000, Wins.mdb, and Wins.pat files to the folder where the latest backup files are stored. To do so, follow these steps: <ol> Identify the location of the backup files.</li> If the current WINS database does not work, you can create the database. To do so, follow these steps: <ol style="list-style-type: lower-alpha;"> Stop the WINS service. To do so, in the WINS MMC Snap-in, right-click the server, click All Tasks, and then click Stop.</li> Delete all the files in the System32\Wins folder except the Wins_bak folder. You can copy the backup files to another folder in case you must use them for troubleshooting.</li> In the WINS MMC Snap-in, right-click the server, click All Tasks, and then click Start.</li></ol> </li> In the WINS MMC Snap-in, right-click the server, click All Tasks, and then click Stop.

Note When the WINS service stops, the green arrow that was to the left side of the server name changes to a red circle with a white 'X' mark inside it.</li> <li>Locate the Wins folder, and then delete all the files under this folder, but do not delete the Wins_bak folder.</li> <li>Locate the New folder under the Wins_bak folder, and then delete all the files under this folder.

Note Make sure that there are no other j5 files in the Wins_bak\New folder of the WINS server after you complete this step. You can find these folders at the following location:

%Systemroot%\System32\Wins

</li> <li>Copy the J500000, Wins.mdb, and Wins.pat files from the external media source to the Wins_bak\New folder.</li> <li>Right-click the WINS server that you want to restore, and then click Restore Database.</li> <li>Locate the folder where the backup files are located, and then click OK.

Note Use the parent folder of the Wins_bak folder.</li> <li>The WINS database now includes all the entries that the backup copy of the Wins.mdb file contained. Verify that the database was restored.</li> <li>You can now jetpack the database to make sure that compacted the database successfully without errors.</li></ol>

For additional information about WINS databases, click the following article number to view the article in the Microsoft Knowledge Base:

235609 Recovering a WINS Database From Other Backup Sources

Additional query words: WIN2K networking services NBNS

Keywords: kbenv kbhowto kbnetwork KB244810

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.