How can I move shares and their contents from one machine to another?

John Savill

March 4, 1999

1 Min Read
ITPro Today logo in a gray background | ITPro Today

A. A. Moving the actual files and directories is simple,however share information is not contained in the directories, but rather iscontained in the registry (under LanmanServer), it is therefore necessary tocopy this registry information from the machine currently containing theshares, to the machine that will host the shares:

  1. To copy the files you will need to use the SCOPY utility that is suppliedwith the resource kit to keep the current permission/audit settings
    SCOPY : : /o /a/s

  2. On the machine that currently hosts the shares, start the registry editor(regedt32.exe, not regedit.exe)

  3. Move to the keyHKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesLanmanServerShares

  4. Click on Shares, and select Save Key from the Registry Menu

  5. Enter the name of a file, e.g. shares.reg and click OK

  6. Copy this file to the target machine

  7. Again start the registry editor (regedt32.exe) and move toHKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesLanmanServerShares andselect Shares.

  8. From the Registry menu, select Restore and select the file you saved, e.g.shares.reg and click Open
    Warning: You will lose all currently configured shares on themachine

  9. You will prompted to continue, click Yes

  10. Close the registry editor

  11. Reboot the machine and once restarted you will see the new shares

About the Author

Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like