Let us help. Let us help. Eitex is a leading IT Support company offering Cloud Computing, Microsoft Office 365, Microsoft CRM, Sage, IT Support, Computer and Network Support throughout Yorkshire and the UK. If your IT isn’t up to scratch, we can help!

Find out more about Eitex
Get a quote now

Friday, 4 September 2009

Move shares from one server to another.

Ever need to move shares from one server to another or need to reinstall Windows over an existing installation? Whilst keeping NTFS permissions and Share permissions? Well here's how.

The steps that are outlined below shows you how to modify the registry. Serious problems might occur if the registry is modified incorrectly. Please take care and use this method at your own risk. Please take a full backup of your server/computer including the registry before continuing with this procedure.

To save only the existing share names and their permissions on Windows follow these steps. Note This procedure applies only to NetBIOS shares and not to Macintosh volumes.

A. On the existing Windows installation that contains the share names and permissions that you want to save, start Registry Editor (Regedt32.exe).

B. From the HKEY_LOCAL_MACHINE subtree, go to the following key:
SYSTEM\CurrentControlSet\Services\LanmanServer\Shares

C. Save or export the registry key.
o For Windows NT and Windows 2000, click Save Key on the Registry menu.
o For Windows Server 2003, click Export on the File menu.

D. Type a new file name (a file extension is not necessary), and then save the file to a floppy disk or removable USB drive.

E. Reinstall Windows or move data from one server to another.

F. Run Registry Editor (Regedt32.exe). (On newly installed server or on Destination server)

G. From the HKEY_LOCAL_MACHINE subtree, go to the following key:
SYSTEM\CurrentControlSet\Services\LanmanServer\Shares

H. Restore or import the registry key.
o For Windows NT and Windows 2000, click Restore on the Registry menu.
o For Windows Server 2003, click Import on the File menu.

I. Type the path and file name of the file that you saved in steps 3 and 4.
Caution This step overrides the shares that already exist on the Windows computer with the share names and permissions that exist in the file you are restoring. You are warned about this before you restore the key.

J. Restart the server.


Note After you complete this procedure, if 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 you restore the shares key, the shares can be used by network clients. If you run the net shares command on the server, the server displays the shares; however, File Manager does not display the shares. To make File Manager aware of the newly restored shares, create any new share on the server. File Manager displays all of the other shares after you restart the server or stop and restart the Server service.

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 folders and files are not affected when you save and restore the shares key.

This is a risky procedure and if done wrongly can make your system inoperable. If you require assistance we are able to offer IT support on an individual 'Per Incident' basis, or on a contract basis - which ever suits your needs at the time.

No comments:

Post a Comment

Subscribe to Eitex IT Support by Email

Eitex on LinkedIn

Copyright © Eitex 2008 | Site Map | Blog Created by Eitex IT Support

Eitex is a registered trading name of Expert Systems Ltd, The Meeting Rooms, Boothroyd Lane, Dewsbury. WF13 2LP