Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Troubleshooting
Research
Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

Active Directory Home Folder Moves

Avatar of Scott Halford
Scott Halford asked on
Active DirectoryWindows BatchWindows Server 2008
10 Comments1 Solution1352 ViewsLast Modified:
I’ve just started to work for a school district where I would like to change the way that their Documents folders are being mapped. In the current structure they are using group policy to map the documents folder using the “Advanced - Specify locations for various user groups” and creating the users Documents folder biased upon their building using security permissions (There are 10 buildings in all)

The way I have always setup AD home folders is by using the Profile tab under the user account in AD and then mapping their documents folder based upon this location using this home folder location.

The current file structure is a follows (By Building)

- Students (root)
      - Building 1
      - Building 2
      - Building 3
      - Building ….

The way I would like it setup. (By graduating year)

- Students (root)
      -2015
      -2016
      -2017
      -20….


AD users and computers current has the user accounts separated by building OUs and Sub OUs of graduating school year. (I think this is a good thing and we will keep it this way)

Building 1
      -2015
      -2016            
      -2017

Building 2
        -2015
      -2016            
      -2017

What I need is a way to move their current home holders using Robocopy and setup some parameters using their OU membership.  I don’t mind doing this for each individual building but if I have to do each student manually it will take way too long.

The script needs to be something like this

If OU = buildingA and SUB OU = 2015
      
      move from d:\students\Building A\%username%\My Documents  d:\students\2015\%username%\Documents

Yes I want to also change the “My Documents” folder to “Documents”
ASKER CERTIFIED SOLUTION
Avatar of Scott Halford
Scott HalfordCEO

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Commented:
This problem has been solved!
Unlock 1 Answer and 10 Comments.
See Answers