Link to home
Start Free TrialLog in
Avatar of support01
support01Flag for United Kingdom of Great Britain and Northern Ireland

asked on

%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?

Thanks!
ASKER CERTIFIED SOLUTION
Avatar of donciakas
donciakas
Flag of Lithuania image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of support01

ASKER

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?
SOLUTION
Avatar of johnb6767
johnb6767
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks guys