The VBScript Network and Systems Administrator's Cafe

Dec 18 2008   12:06AM GMT

Fun with the registry: Saving shares and share permissions from a server (and moving them to a new server)

Jerry Lees Jerry Lees Profile: Jerry Lees

On occasion you have to rebuild servers, some are worse than others to rebuild. File Servers are not that difficult to rebuild, but one of the tedious tasks in moving a file server is setting up all the shares that have been added over time all at once. you know the drill:

Point. Click. Click. Click. Add. Double check settings. Click OK.  Pray it’s right.

Well, all the shares and the share permissions that are associated with each share are actually saved in the registry! You can save a TON of time and look like a super hero IT professional– and be lazy! By simply exporting the proper key in the registry and importing it to the new server! (Note: If your drive letters change you will need to update the paths in the registry to get them to work.)  The registry key is:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\lanmanserver\Shares

Keep in mind… your editing the registry on your fresh new server… so I’ll blatantly copy Microsoft’s stereotypical disclaimer:  ;-)

Caution, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow the steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base:

322756  (http://support.microsoft.com/kb/322756/ ) How to back up and restore the registry in Windows

 Comment on this Post

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when other members comment.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to: