support01
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%\UserProfil es\%userna me%\Favori tes" /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!
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\
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks guys
ASKER
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?