Move Files script
I need to migrate all user files from Win2000 file server to a Win2008R2 file server. Anyone know a good CMD script to move users files based on the AD OU. So for example i have serveral hundred OU's, what if friday i only wanted to move Administration users to the new filer server? Thanks in advance...Danny G Guillory Jr. Twitter: @dguilloryjr Blog: http://msvenom.wordpress.com/ LinkedIn: http://www.linkedin.com/in/dannyjr
December 11th, 2011 8:21pm

This depends on how your user files are organized. How can a script tell which files go with which user? Are all user folders arranged by OU, or are they all mixed together? Are each user's files in a folder named after the user? Is the name of the folder the "pre-Windows 2000 logon" name of the user (the value of the sAMAccountName attribute)? If all users in the Administrator OU have their files in a separate folder, you can use robocopy to copy the files and folders. Otherwise, you will need to use a script that retrieves information on the users in a specified OU so you can identify which folders to copy. In that case you should ask in the scripting forum: http://social.technet.microsoft.com/Forums/en-US/ITCG/threads You will need to explain how the files are organized, so a script can tell which files are for which user in AD. Richard Mueller - MVP Directory Services
Free Windows Admin Tool Kit Click here and download it now
December 11th, 2011 9:10pm

This depends on how your user files are organized. How can a script tell which files go with which user? Are all user folders arranged by OU, or are they all mixed together? Are each user's files in a folder named after the user? Is the name of the folder the "pre-Windows 2000 logon" name of the user (the value of the sAMAccountName attribute)? If all users in the Administrator OU have their files in a separate folder, you can use robocopy to copy the files and folders. Otherwise, you will need to use a script that retrieves information on the users in a specified OU so you can identify which folders to copy. In that case you should ask in the scripting forum: http://social.technet.microsoft.com/Forums/en-US/ITCG/threads You will need to explain how the files are organized, so a script can tell which files are for which user in AD. Richard Mueller - MVP Directory Services
December 12th, 2011 5:05am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics