%userprofile% variable - direct to server (folder-redirection)

When we install a new customer, we use some basic batch files to migrate portions of their current user profiles (Favourites, Desktop, Cookies etc) over to a Stage PC, then back into their new userprofile.

All works fine, except some of the userprofile data doesn't seem to be picked up after logging into the new account.

A prime example would be the IE favorites. The portion of the script that copies the favorites looks like:

xcopy "\\StagePC\staging\PCDATA\%username%\Favorites" "\\%servername%\UserProfiles\%username%\Favorites" /E /H /I

We use folder-redirection for the userprofile data, and the data is copied to the server fine, but it isn't picked up from the desktop. Other folder-redirections work fine (My Documents, Desktop etc) and are picked up immediately.

If we copy the data to the local profile (e.g. %userpfrofile%\Favorites) it will pick that up fine.

Does this look like a folder-redirection issue, or am I missing something?

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Have You ever tried using "User Profile Wizard" found on http://www.forensit.com/downloads.html
maybe it will solve Your problems


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
check the security settings on the folders in question.  
You might find that the user does not have the correct rights to "write" to the favourites folder.  This is assuming that you have set up folder redirection for the favourites folder correctly. :-)
support01Author Commented:
Thanks for the replies :)

However, while on the journey home, I got thinking.... couldn't this actually just be normal "roaming profile" behaviour?

When we login for the first time with the new AD account, it has a blank profile, which is downloaded and cached to the C: drive. We then run the script which copies data to the server profile, so... thinking about it..... it's normal that it's not picked up during this login session and should (in theory) be picked up at the next login?
Honestly, I would Un Exclude any directories currently not roaming, and allow the next logoff event (or two) to copy them up for you as part of the profile. Then switch the policy back.....

Favorites and Cookies are not going to be large files... Dont matter how many links, they are only about a 1kb a piece......

Desktop, thats another story....
support01Author Commented:
Thanks guys
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows XP

From novice to tech pro — start learning today.