%HOMESHARE% variable not resolved when redirecting Desktop

When configuring folder redirection in Group Policy I get this error when I try to use the %HOMESHARE% variable in the Desktop setting:
Could not expand environment variables in new redirected path %HOMESHARE%\Desktop, error 161.

I've attached the full session from fdeploy.log so you can see that the variable is resolved when I use it in the "My documents" redirection.

Anybody have a way to get the %HOMESHARE% variable to be resolved?

Notes.
Domain is at Server 2008 R2 "Forest functional level"
Client is XP SP3
My users are in various OU's and home directories are in a different home folder for each OU, so it is not feasible to specify the folder in the "Folder redirection Policy"
18:07:49:267 Entering folder redirection extension
18:07:49:267 	Flags = 0x450
18:07:49:287 Homedir redirection path %HOMESHARE%%HOMEPATH%\Docs expanded to \\omsd.local\BP-Faculty-Homes\ktaylor\Docs.
18:07:49:297 Homedir redirection path %HOMESHARE%%HOMEPATH%\Docs\My Pictures expanded to \\omsd.local\BP-Faculty-Homes\ktaylor\Docs\My Pictures.
18:07:49:317 Folder redirection policy application has been delayed until the next logon because the group policy logon optimization is in effect.
18:08:37:967 Entering folder redirection extension
18:08:37:967 	Flags = 0x440
18:08:37:987 Homedir redirection path %HOMESHARE%%HOMEPATH%\Docs expanded to \\omsd.local\BP-Faculty-Homes\ktaylor\Docs.
18:08:37:987 Homedir redirection path %HOMESHARE%%HOMEPATH%\Docs\My Pictures expanded to \\omsd.local\BP-Faculty-Homes\ktaylor\Docs\My Pictures.
18:08:38:007 	Group Policy Object name = {6D248129-FF09-49DA-A93A-FB27E8293EE7}
18:08:38:007 	File system path = \\omsd.local\SysVol\omsd.local\Policies\{6D248129-FF09-49DA-A93A-FB27E8293EE7}\User
18:08:38:007 	Directory path = LDAP://CN=User,cn={6D248129-FF09-49DA-A93A-FB27E8293EE7},cn=policies,cn=system,DC=omsd,DC=local
18:08:38:007 	Display name = test - folder redirection
18:08:38:017 Found folder redirection settings for policy test - folder redirection.
18:08:38:047 The user was found to be a member of the group s-1-1-0. The corresponding path was %HOMESHARE%\Desktop.
18:08:38:047 Successfully obtained redirection data for Desktop, (Flags: 0x20).
18:08:38:047 Successfully obtained redirection data for My Pictures, (Flags: 0x2).
18:08:38:047 The user was found to be a member of the group s-1-1-0. The corresponding path was %HOMESHARE%%HOMEPATH%\Docs.
18:08:38:047 Successfully obtained redirection data for My Documents, (Flags: 0x20).
18:08:38:047 Unable to expand %HOMESHARE%\Desktop, error 161.
18:08:38:047 Successfully gathered folder redirection settings for policy test - folder redirection.
18:08:38:057 Unable to expand %HOMESHARE%\Desktop, error 161.
18:08:38:057 Could not expand environment variables in new redirected path %HOMESHARE%\Desktop, error 161.
18:08:38:057 Failed to perform redirection of folder Desktop.
The fully expanded paths for the folder could not be determined.
The following error occurred: 
%%161

18:08:38:057 Querying the DS for user ktaylor's home directory.
18:08:38:097 Obtained home directory : \\omsd.local\BP-Faculty-Homes\ktaylor.
18:08:38:097 Homedir redirection path %HOMESHARE%%HOMEPATH%\Docs expanded to \\omsd.local\BP-Faculty-Homes\ktaylor\Docs.
18:08:38:097 Redirecting folder My Documents to %HOMESHARE%%HOMEPATH%\Docs.
18:08:38:107 Disabling permission for user redirection of My Documents.
18:08:38:107 Folder My Documents already redirected to \\omsd.local\BP-Faculty-Homes\ktaylor\Docs.
18:08:38:117 Homedir redirection path %HOMESHARE%%HOMEPATH%\Docs\My Pictures expanded to \\omsd.local\BP-Faculty-Homes\ktaylor\Docs\My Pictures.
18:08:38:117 Redirecting folder My Pictures to %HOMESHARE%%HOMEPATH%\Docs\My Pictures.
18:08:38:127 Folder My Pictures already redirected to \\omsd.local\BP-Faculty-Homes\ktaylor\Docs\My Pictures.
18:08:38:167 Failed to update the shortcut to the My Pictures folder in My Documents, error 0x4ee.

Open in new window

LVL 3
kelntaylorAsked:
Who is Participating?

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

x
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.

James MurrellProduct SpecialistCommented:
I think you need to specify a UNC-path.
Environmental variables won't work:

http://support.microsoft.com/?kbid=321805
0

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
kelntaylorAuthor Commented:
cs97jjm3,
That KB article is quite old (applies to Windows 2000 Server.)  The %HOMESHARE% variable is resolved during Document redirection, in fact if you have the option to specify to the user's home folder as a destination in Group Policy.  

What your saying may be true for other redirection locations, but I'm hoping it isn't.
0
James MurrellProduct SpecialistCommented:
I hate to say it but I do think it is true
0
kelntaylorAuthor Commented:
Not the answer that I wanted, but it appears to be the correct answer. :(   I ended up redirecting the desktop and favorites via a registry entries.
0
bensonkCommented:
Using the %HOMESHARE% path in the folder redirection policy is mostly working for me. My Windows 7 clients are redirecting using this variable.

However Remote Desktop Session users are failing to redirect using this variable.

We know that there may be problems with XP clients getting their folders redirected correctly, but haven't yet tested the %HOMESHARE% to be the problem.

EDIT: %HOMESHARE% variable does not work for XP. The folder redirects coom sooner in the login process than the population of the %HOMESHARE% variable therby causing the error.

To address this as eventually XP would go away I accomodated the Win7 clients in all OUs with a single GPO at the domain level which filtered down to all sites. I then created a OU (site in our case) specific GPO with WMI filters for XP only - this GPO was then linked to the site OU and defined the file server at that site. A seperate GPO and link with the same WMI filter was applied to each sub-OU or site.

Hope this helps..
0
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.