How can I move shares and their contents from one machine to another?
March 4, 1999
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:
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/sOn the machine that currently hosts the shares, start the registry editor(regedt32.exe, not regedit.exe)
Move to the keyHKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesLanmanServerShares
Click on Shares, and select Save Key from the Registry Menu
Enter the name of a file, e.g. shares.reg and click OK
Copy this file to the target machine
Again start the registry editor (regedt32.exe) and move toHKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesLanmanServerShares andselect Shares.
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 themachineYou will prompted to continue, click Yes
Close the registry editor
Reboot the machine and once restarted you will see the new shares
About the Author
You May Also Like