Is there any way to rename a shared folder in Windows Server 2003 without losing the sharing permission?

Is there any way to rename a shared folder in Windows Server 2003 without losing the sharing permission?
Basically when renaming a share folder the NTFS permissions on the Security TAB will remain but the sharing permissions won't, they will disapear once the share folder has been rename because you have to unshare the share folder.

Is there anyway to keep this permissions. I have to rename a huge amount of share folders according to a new name policy and I need to keep the share permissions.

Any ideas?  

Who is Participating?
Lee W, MVPConnect With a Mentor Technology and Business Process AdvisorCommented:
Never tried it... but you could do this...

1.  Stop the server service.
2.  Rename the folder
3.  Open the registry editor and navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\lanmanserver\Shares
4.  Change the name and/or path as necessary
5.  Restart the server service.
Brian PringleSystems Analyst II, SCM, ERPCommented:
No, unfortunately the share names are tied to the folder names.  Once you rename the folder, the share name is no longer valid.  You would have to manually re-assign the share and the permissions.
Lee W, MVPTechnology and Business Process AdvisorCommented:
Why did you give a C grade with NO FEEDBACK whatsoever?  How can you accept two contradictory answers?
Joshua GoldbergSenior Windows Systems EngineerCommented:
I just tried leew's answer on Server 2008. It worked! The only other thing to note is that under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\lanmanserver\Shares there is also HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\lanmanserver\Shares\Security

Make sure you rename each key to correspond to your new share name

Once you've renamed the keys in HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\lanmanserver\Shares

and changed the parameters of each key in HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\lanmanserver\Shares
reboot your whole computer, don't just start the server service.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.