Microsoft KB Archive/141589

= How to Restore Share Definitions To Another Server =

Article ID: 141589

Article Last Modified on 2/20/2007

-

APPLIES TO


 * Microsoft Windows 2000 Server
 * Microsoft Windows 2000 Advanced Server
 * Microsoft Windows NT Server 3.51

-



This article was previously published under Q141589





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.

 Restore all data from backup. 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) Start Registry Editor (REGEDT32.EXE) and select the HKEY_LOCAL_MACHINE subtree (hive).  From the Registry menu, select Load Hive. Specify the previous system hive. See Step 2 above. Enter a key name. For example: OldSystemHive.</li></ol> </li> Locate the following Registry subkey in the HKEY_LOCAL_MACHINE subtree:

\OldSystemHive\ControlSet001\Services\LanmanServer\Shares <ol style="list-style-type: lower-alpha;"> Make sure that all the share definitions are correct.</li> From the Registry menu, select Save Key.</li> Save the key definition as Shares.key in C:\Temp.</li></ol> </li> Locate the following Registry subkey in the HKEY_LOCAL_MACHINE subtree:

\OldSystemHive <ol style="list-style-type: lower-alpha;"> From the Registry menu, select Unload Hive.</li> Specify the file name of the hive.</li></ol> </li> In Control Panel Services, select the Server service. Click Stop.</li> In Registry Editor, locate the following Registry subkey in the HKEY_LOCAL_MACHINE subtree:

\SYSTEM\CurrentControlSet\Services\LanmanServer\Shares <ol style="list-style-type: lower-alpha;"> From the Registry menu, select Restore.</li> Specify the key name. For example: C:\Temp\Shares.key</li></ol> </li> Quit the Registry Editor.</li> In Control Panel Services, select the Server service. Click Start and then click Close.</li></ol>

Additional query words: prodnt

Keywords: kbusage KB141589

-

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

© Microsoft Corporation. All rights reserved.