Saving and Restoring Existing Windows NT Shares

Last reviewed: September 17, 1997
Article ID: Q125996
3.10 3.50 WINDOWS kbsetup

The information in this article applies to:

  • Microsoft Windows NT operating system version 3.1
  • Microsoft Windows NT Advanced Server version 3.1
  • Microsoft Windows NT Workstation version 3.5, 3.51, and 4.0
  • Microsoft Windows NT Server version 3.5, 3.51, and 4.0

SUMMARY

If you need to:

- reinstall Windows NT over an existing installation (a clean install, not

  an upgrade)

- move all of your data drives from one server to another

- install Windows NT to another directory or drive on a computer that

  already has Windows NT installed

you can save the share names that exist on the original Windows NT installation, including any permissions assigned to those shares.

MORE INFORMATION

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.

To save only the existing share names and their permissions on Windows NT follow these steps:

NOTE: This procedure applies only to NetBIOS shares and not Macintosh volumes.

  1. On the existing Windows NT installation containing the share names and permissions that you want to save, run the Registry Editor (Regedt32.exe).

  2. From the HKEY_LOCAL_MACHINE subtree, go to the following key:

          SYSTEM\CurrentControlSet\Services\LanmanServer\Shares
    

  3. Choose Save Key from the Registry menu.

  4. Type a new file name (a file extension is not necessary) and save the file to a floppy disk).

  5. Reinstall Windows NT

  6. Run Registry Editor. (Regedt32.exe)

  7. From the HKEY_LOCAL_MACHINE subtree, go to the following key:

          SYSTEM\CurrentControlSet\Services\LanmanServer\Shares
    

  8. From the Registry menu choose Restore.

  9. Type the path and file name of the file that you saved in steps 3 and 4.

    CAUTION: This step overrides whatever shares already exist on the Windows NT machine with the share names and permissions that exist in the file you are restoring. You are warned about this before restoring the key.

    NOTE: If, after completing the procedure above, you decide that you should not have restored the Shares key, restart the computer and press the Spacebar to use the Last Known Good Configuration.

After restoring the shares key, the shares can be used by network clients. Although running NET SHARES on the server displays the shares, File Manager does not. To make File Manager aware of the newly restored shares, create any new share on the server. File Manager will then display all of the other shares after you reboot the server or stop and re-start the Server service.

In Windows NT 3.5, if you choose "Stop Sharing" in file manager, the restored shares will still show up, but they are grayed out.

Only permissions for domain users are restored. If a local user was created in the previous Windows NT installation, that local user's unique security identifier (SID) is lost.

NTFS permissions on directories and files are not affected when you save and restore the shares key.


KBCategory: kbsetup
KBSubcategory: ntdomain ntregistry ntsetup
Additional reference words: 3.10 3.50 3.51 4.00 prodnt restore move share
Keywords : ntdomain ntregistry ntsetup kbsetup
Version : 3.10 3.50
Platform : WINDOWS


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: September 17, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.