Mirgrating roaming profiles and user directories

Posted on 2009-04-21
Last Modified: 2012-05-06
I work for a organization that has multiple site offices and we staff transferring between these offices. All users have a Active Directory Mapped home drive (H: Drive) which are stored on the local file server (so for example is sally is in Melbourne her profile and user directory is stored on Melbourne's File server) What is the best way to move the profile folder (her roaming profile) and user folder (h drive) to other sites file server?? I need to keep permissions and i'd like to do it without taking ownership of the folder and so on.
I obviously cant just click and drag due to the fact the only person with permissions is the user that owns the folder.

Any ideas?

Question by:sunny72
    LVL 14

    Expert Comment

    I utilize Robocopy to perform large data copies and transfers.  It has the ability to maintain NTFS security.  I *believe* that the System account will need permission to the files being copied, though I can't quite recall accurately if that is the case.

    Author Comment

    What would be the command for robo copy as i know it has a CLI?
    LVL 14

    Accepted Solution

    Below is a sample of what I've used.  The below runs in a scheduled batch file.  Robocopy executes and puts the results in a log file.  Another program (Blat) then emails that logfile to the administrator.

    Robocopy has many switches available.  The ones used below are:

    E - copies subdirectories, including empty ones.
    R - number of retries on a failed copy.
    W - wait interval between retries.
    V - verbose output.
    LOG - create log file.

    You'll want to familiarize yourself with the syntax.

    robocopy \\server\share f:\MyData /sec /E /R:0 /W:2 /V /LOG:f:\logfile.txt

    REM Email log file.
    blat.exe "f:\logfile.txt" -server emailserver -f -t -s "Robocopy Report"
    LVL 14

    Expert Comment

    Forget /sec, which does security.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Starting in Windows Server 2008, Microsoft introduced the Group Policy Central Store. This automatically replicating location allows IT administrators to have the latest and greatest Group Policy (GP) configuration settings available. Let’s expl…
    Do you have users whose passwords are expiring and they are constantly calling you?  Well I sure did and needed a way to put an end to this.  We have a lot of remote users which would not be notified that their passwords were expiring since they wer…
    This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
    This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…

    759 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

    11 Experts available now in Live!

    Get 1:1 Help Now