AD Home Folder migration, 2008 R2

Is there a script, or an easier way to migrate users home folder without manually taking ownership, moving it and reassigning permissions?

Right now... H:\ = \\server\users\username
That folder location is locked down even to Administrator because by default that user was granted "Owner" of that folder the first time that user logged in and that folder was automatically created.

I have 100 users I'd have to take ownership of all the folders (I can do that at the top level I guess) but then after I migrate those folders to the new location, I'd have to give permissions back to the users.

Is there a better way to do this?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

You may use rich copy
Taking ownership does not mean its necessary to revert on the target server

Copy data (Take ownership ..if you get access denied)
Change the policy
Test after re-login
MetaltreeAuthor Commented:
I will have to give permissions back on the target server. the only permission they have is Ownership, not Full Control
SandeshdubeySenior Server EngineerCommented:
Yes,you need to copy permission as well to target server.You can also use robocopy to copy the permission.

robocopy C:\Data\Share D:\Share /e /r:1 /w:1 /zb /secfix /tee /log:C:\log.txt -----Copy with securityfix

Use RoboCopy to Move Folders from One Server to Another

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
MetaltreeAuthor Commented:
Yes guys, I understand what i need to do to copy the files.

The question is, how can I automate the process of taking ownership, moving the files, then giving ownership back to specific users, or at least full control
MetaltreeAuthor Commented:
The /zb flag is what I needed. Running it in "backup mode" allowed me to move the files even without having permission.

Also, I setup DFS and that allowed me to replicate it as well.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Server 2008

From novice to tech pro — start learning today.