aidenbran2000 Posted October 8, 2017 Posted October 8, 2017 We have just set up a primary school in our area up with a new server and need a way of moving all the user home drive data across. We have changed the username structure for them as it was ridiculously complicated so what is the best solution to move the data across to their new home folders?
djm968 Posted October 9, 2017 Posted October 9, 2017 Powershell Script with Robocopy, something like this. Param ( [array]$Users = @(Get-Content "C:\Users.txt"), [string]$oldServer, [string]$newServer ) $Users | ForEach { Robocopy "\\$OldServer\HomeShares\$_" "\\$newServer\HomeShares" /SEC /COPYALL /MOVE /v } 1
aidenbran2000 Posted October 9, 2017 Author Posted October 9, 2017 Powershell Script with Robocopy, something like this. Param ( [array]$Users = @(Get-Content "C:\Users.txt"), [string]$oldServer, [string]$newServer ) $Users | ForEach { Robocopy "\\$OldServer\HomeShares\$_" "\\$newServer\HomeShares" /SEC /COPYALL /MOVE /v } Anything with a GUI?
Brendan0808 Posted October 9, 2017 Posted October 9, 2017 Robocopy has a GUI now, it's called RoboMirror. very easy to use. 4
aidenbran2000 Posted October 9, 2017 Author Posted October 9, 2017 Robocopy has a GUI now, it's called RoboMirror. very easy to use. Will the GUI allow me to specify jobs for example the old users had accounts like Fred21 but the new username is FBloggs how can I specify what needs to be matched up and do i have to do this one at a time or can I stack jobs.
Duke5A Posted October 20, 2017 Posted October 20, 2017 This is going to have to be scripted. Need a few more details: Were the AD accounts renamed or recreated? If they were simply renamed, then at worst you're looking at a single line's worth of Robocopy to copy the folders to the new server (and setting it to preserve the security permissions) and a four line script to change the homefolder path in the account properties to point to the correct server. To rename the folders to reflect the new usernames will require a few more lines to the script, but it can be done.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now