Script to move home directories to new location by OU or username
I'm no scripting guru so please bear with me on this.
I have an urgent need to relocate users home directories from one location to another.
Currently our \\UNCPath\user shared folders\ area contains both pupils and staff folders which is a nono and isn't the best practice. I need to move all the pupils home folders to a new location \\UNCPath\pupils\
I've generated a username_year_group_x.csv file containing a single column samaccountname for all users from each year group and I want to feed it into a script and use those usernames to move the corresponding folders to their new location.
I know how to change the home folders from AD for all users but I just can't figure how to move the actual data!
Hope someone can help me!