none
How can I migrate file/folder Share names and permission names from W2K3 to W2K8R2

    Question

  • I have hundreds of file/folder shares occupying several TBs of space on a SAN.  We have built a new Windows 2008 R2 Server to be our new share server.  I'm looking for a way to JUST migrate the share names and share permissions to this new server.  I intend to simply unpresent the SAN LUNs from the old server to the new server, so no data movement is needed.

    I've briefly scanned the Share Migration tools but that seems focused on actually moving the data from one server/storage to another server/storage, and there seems to be lots of focus on DFS, which we don't use here. 

    What I'm looking for is a way to simply, easily re-create the shares with their share permissions , once the disks/files are present on the new W2K8R2 server.

    Is there anything available to help me with this?


    Denny
    Wednesday, September 07, 2011 8:06 PM

Answers

All replies

  • You can use Robocopy - http://technet.microsoft.com/en-us/library/cc733145(WS.10).aspx

    You should be able to assign the existing SAN volume to the new sever.  Share, permission etc is depends on your SAN configuration. 


    Santhosh Sivarajan | MCTS, MCSE (W2K3/W2K/NT4), MCSA (W2K3/W2K/MSG), CCNA, Network+| Houston, TX
    Blogs - http://blogs.sivarajan.com/

    FaceBook Twitter LinkedIn SS Tech Forum

    This posting is provided AS IS with no warranties,and confers no rights.
    Wednesday, September 07, 2011 8:21 PM
  • I use robocopy to copy the files and NTFS permissions between servers and/or disks; that's not what I'm looking for here. 

    I just need to re-create define the Shares and restore any/all share permissions, and the version of robocopy I have doesn't seem to do that.


    Denny
    Wednesday, September 07, 2011 8:45 PM
  • OK. Then I think your other option is FSMT - http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=10268


    Santhosh Sivarajan | MCTS, MCSE (W2K3/W2K/NT4), MCSA (W2K3/W2K/MSG), CCNA, Network+| Houston, TX
    Blogs - http://blogs.sivarajan.com/

    FaceBook Twitter LinkedIn SS Tech Forum

    This posting is provided AS IS with no warranties,and confers no rights.
    Wednesday, September 07, 2011 8:50 PM
  • My look at FSMT tells me that it will copy the data files, have I missed something?  Again, I don't need the files copied!!  Just a way to re-establish the share names/paths on the new server w/ the correct share permissions.
    Denny
    Wednesday, September 07, 2011 8:54 PM
  • >>> Just a way to re-establish the share names/paths on the new server w/ the correct share permissions

    Are you planning to present the existing SAN volume to new server?

    There is no built-in option to “attach” share name and permission to this.  You can use ShareEnum or AccessEnum  (http://technet.microsoft.com/en-us/sysinternals/bb897442) to get the current share permission details and recreate them using a script.   I can’t think of any other options!


    Santhosh Sivarajan | MCTS, MCSE (W2K3/W2K/NT4), MCSA (W2K3/W2K/MSG), CCNA, Network+| Houston, TX
    Blogs - http://blogs.sivarajan.com/

    FaceBook Twitter LinkedIn SS Tech Forum

    This posting is provided AS IS with no warranties,and confers no rights.
    Wednesday, September 07, 2011 9:02 PM
  • Yes, I plan to present/attach existing SAN volumes to new server.

    Can you point me to any sample scripts that will read/collect exist names w/ share permissions on "old server" then re-create them on new server?


    Denny
    Wednesday, September 07, 2011 9:08 PM
  • Here is the sample script - http://gallery.technet.microsoft.com/scriptcenter/6309d93b-fcc3-4586-b102-a71415244712

    Of course you need to modify the script based on your input file.

    You can see more scripts in - http://gallery.technet.microsoft.com/scriptcenter/site/search?f%5B0%5D.Type=RootCategory&f%5B0%5D.Value=storage&f%5B0%5D.Text=Storage&pageIndex=2

     

    Also, there was a utility called Permcopy (http://support.microsoft.com/kb/174273) but I don’t believe it works on Windows 2008 R2.  You can try it.
    Santhosh Sivarajan | MCTS, MCSE (W2K3/W2K/NT4), MCSA (W2K3/W2K/MSG), CCNA, Network+| Houston, TX
    Blogs - http://blogs.sivarajan.com/

    FaceBook Twitter LinkedIn SS Tech Forum

    This posting is provided AS IS with no warranties,and confers no rights.
    Wednesday, September 07, 2011 9:21 PM
  • Hi,

     

    If you encounter any difficulties when customizing the scripts, you may submit a new question in The Official Scripting Guys Forum! which is a best resource for scripting related issues.

     

    The Official Scripting Guys Forum!

    http://social.technet.microsoft.com/Forums/en/ITCG/threads

     

    Regards,

     

    Forum Support

     

    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.


    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
    • Marked as answer by DennisThury Thursday, September 08, 2011 3:00 PM
    Thursday, September 08, 2011 2:39 PM
  • Easiest way by far is to follow this

    http://support.microsoft.com/kb/125996

    as long as the san lun's are presented to the new server with the same drive letter as the share's had on the old server, you'll be fine.

    Dave


    dave
    • Marked as answer by DennisThury Wednesday, September 14, 2011 4:11 PM
    Tuesday, September 13, 2011 10:51 PM
  • I've tried this registry export and import on the LANMAN info, but that doesn't seem to work exporting from a W2K3 server to a W2K8R2 server.  I've seen entries in this forum who tried, but were unsuccessful.

    I'm running another test tonight:

    • created a snapshot of one of share disks on the EVA, and presented it to the new W2K8R2 server
    • Exported the shares from the W2K3 registery, as outlined in the KB article
    • Imprted those definitions into the W2K8R2 server.
    • Scheduled a reboot of the W2K8R2 server for o'dark:30 tonight.

    It this works, tomorrow, I should see that there are Shared folders on the W2K8R2 server.  Right? 

    Will let you know results tomorrow.


    Denny
    Tuesday, September 13, 2011 11:09 PM
  • Last night's test of the LANMAN registry export/import was successful,  this approach does indeed seem to work.  I believe I made 2 mistakes in my initial test of this approach:

    1.  I didn't reboot the server, which apparently to loads the imported registry settingss -- DUH!!!!

    2.  I didn't make the data disks available to the new server (I guess I was expecting to at least see the share defined, but unavailable).  In this test, I only made one of several share disks available.  After the reboot, only the shares on that disks were created/available, which makes sense to me.  I successfully to connected 2-3 of these shares, and accessed some of the files.

    Thanks,

     


    Denny
    Wednesday, September 14, 2011 4:11 PM
  • Glad it worked for you. Dont think you need to reboot, just restart the server service. If you looked in the event logs you would of seen errors about not being able to create the shares, something like "unable to share d:\users path not found" etc. Anyhoo, its all good.

    cheers

    Dave


    dave
    Wednesday, September 14, 2011 7:50 PM