How to Restore Share Definitions To Another Server

Last reviewed: March 26, 1997
Article ID: Q141589
The information in this article applies to:
  • Microsoft Windows NT Server version 3.51
  • Microsoft Windows NT Server version 4.00

SUMMARY

When a server crashes, you can restore data from a backup to another server. If the server is a member of the same domain, you can restore security information on files and directories that have been restored from backup using Windows NT Backup (NTBACKUP.EXE). However, the share definitions are not restored.

This article explains how to restore share definitions using NTBackup and the Registry Editor.

MORE INFORMATION

To restore share definitions, you must first do the following:

  • Make sure that you have a backup of the data files and the registry system hive.
  • The new server must have the same partition scheme as the problem server.

After you have completed the above steps, do the following:

WARNING: Using Registry Editor incorrectly can cause serious, system-wide problems that may require you to reinstall Windows NT to correct them. Microsoft cannot guarantee that any problems resulting from the use of Registry Editor can be solved. Use this tool at your own risk.

  1. Restore all data from backup.

  2. Using NTBackup, restore the system hive file of the "crashed" server to a temporary location on your hard disk drive (for example: C:\Temp\system.hiv)

  3. Start Registry Editor (REGEDT32.EXE) and select the HKEY_LOCAL_MACHINE subtree (hive).

    a. From the Registry menu, select Load Hive.

    b. Specify the previous system hive. See Step 2 above.

    c. Enter a key name. For example: OldSystemHive.

  4. Locate the following Registry subkey in the HKEY_LOCAL_MACHINE subtree:

    \OldSystemHive\ControlSet001\Services\LanmanServer\Shares

    a. Make sure that all the share definitions are correct.

    b. From the Registry menu, select Save Key.

    c. Save the key definition as Shares.key in C:\Temp.

  5. Locate the following Registry subkey in the HKEY_LOCAL_MACHINE subtree:

    \OldSystemHive

    a. From the Registry menu, select Unload Hive.

    b. Specify the file name of the hive.

  6. In Control Panel Services, select the Server service. Click Stop.

  7. In Registry Editor, locate the following Registry subkey in the HKEY_LOCAL_MACHINE subtree:

    \SYSTEM\CurrentControlSet\Services\LanmanServer\Shares

    a. From the Registry menu, select Restore.

    b. Specify the key name. For example: C:\Temp\Shares.key

  8. Quit the Registry Editor.

  9. In Control Panel Services, select the Server service. Click Start and then click Close.


Additional query words: prodnt
Keywords : kbusage nthowto
Version : 3.51 4.0
Platform : WinNT


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: March 26, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.