I'm currently working on migrating users to Windows 7 from XP. We use roaming profiles. Xp creates a folder named "Profile", while Windows creates "Profile.V2". Theses folders are independent of each other and do not synchronize. Users "lose" their desktop Favorites etc when using 7 for the first time. I'd like to script a solution which will copy (specific) data from "Profile" to "Profile.v2". Here's a basic outline of what I'd like to do:
# Check for location of users profile folder
#I realize I will need an "if" statement here:
\\server_1\%username%\profile #eg... Boolean=False
\\server_2\%username%\profile #eg... Boolean=True
\\server_3\%username%\profile #eg... Boolean=False
# When true begin to iterate xcopy
xcopy /s/e/f \\server_2\users\%username%\profile\[My Documents] -> %HOMEPATH%\My Documents
xcopy /s/e/f\ \server_2\users\%username%\profile\[Desktop] -> %HOMEPATH%\Desktop
xcopy /s/e/f\ \server_2\users\%username%\profile\[Favorites] -> %HOMEPATH%\Favorites
xcopy /s/e/f\ \server_2\users\%username%\profile\[Favorites] -> %HOMEPATH%\Favorites
xcopy /s/e/f\ \server_2\users\%username%\profile\[app data]\Microsoft\Outlook\*.nk2 -> %APPDATA%\roaming\microsoft\outlook
Please keep in mind I do realize I could use other tools to accomplish this. I'm more or less interested in completing this task in this particular fashion, whether it be through batch or powershell. Thanks!