Trying to Move Terminal Server Profiles

Posted on 2009-12-22
Last Modified: 2012-05-08
I am trying to move my roaming terminal server profiles to a new file server.
I want to change the folder structure on the new file server.
I cannot find a way to copy the profile folders only.
I have tried Backup Exec and Microsoft Backup.  It seems that these programs require the entire path to be replaced.
I tried to then move the files using RoboCopy, Xcopy and Rich Copy.
These don't work either because I don't have security rights to the folder.
I receive access errors and the files are not copied.
The User is the owner and has exclusive access.  If I take ownership the user looses access.
Any other Ideas.

Question by:SCMHC
    LVL 31

    Expert Comment

    by:Henrik Johansson
    Use robocopy with /B or /ZB parameters to copy the files in backup mode and bypass the security issue.

    Author Comment

    I've already tried RoboCopy with /B and seperately /ZB.
    I originally thought it worked but when I looked closer it did not.
    If I don't have access to the files RoboCopy continues and gives me an error
    but the data is not copied.

    Thank for your help
    LVL 31

    Expert Comment

    by:Henrik Johansson
    Are you logged on as user with administrators access on the old file server?

    What syntax of robocopy did you use?
    If using /COPYALL (/COPY:DATSOU), try to skip some of the copyflags by using for example /COPY:DATO to only keep Data, Attributes, Timestamps and Owner info (S=Security, U=aUditing)

    The S-flag should be able to be skipped if configuring permissions for parent folder on new file server share correctly as described in technet-article and let the individual folders inheritate their permissions from the parent folder.

    Accepted Solution

    I used the following steps to move the profiles.
    I used Microsoft Backup to backup the profiles folder (Could have used backup exec)
    I restored to a different folder on the new file server.  
    The entire tree structure was maintained under the new folder on the new server.
    I then took ownership with administrators which removed the users rights.
    On some folders I had to copy down security since only SYSTEM and the USER had rights.
    I then used cacls scripts (addperm and addperm2) to apply the security to all the user folders.
    This was done on a Windows XP system, I couldn't get it to work on a Win 2008R2 system
    Administrator and user has to have full control, the owner was administrators.
    Then I user RoboCopy  to copy the files to the directory I wanted the profiles to reside.
    Process took 6 Hours with 250 profiles.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Join & Write a Comment

    So you have two Windows Servers and you have a directory/folder/files on one that you'd like to mirror to the other?  You don't really want to deal with DFS or a 3rd party solution like Doubletake. You can use Robocopy from the Windows Server 200…
    A quick step-by-step overview of installing and configuring Carbonite Server Backup.
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    13 Experts available now in Live!

    Get 1:1 Help Now