Folder Redirection GPO

D

D Hagstrom

I have created a My Documents redirection GPO with the setting of
Basic-Redirect everyone's folder to the same location and target folder
location is set to Redirect to the user's home folder. When I look in the
GPO console, it shows the setting as Path: \\%HOMESHARE%%HOMEPATH% which,
when copied to the run dialog box does not work, and I have the following
App ID 101 error show up, which shows that the above path is translated to
\\\\servername\share. My question is where are the extra \'s coming from?
You cannot edit the path using the above redirect method and the home folder
in AD connects just fine. I have been able to fix this by redirecting
everyone's folder to the same location and then using the %homeshare%
variable, but I am just curious.


Event Type: Error
Event Source: Folder Redirection
Event Category: None
Event ID: 101
Date: 9/8/2006
Time: 1:53:23 PM
User: LXXXXXX\xxxx
Computer: LXXXXX1
Description:
Failed to perform redirection of folder My Documents. The new directories
for the redirected folder could not be created. The folder is configured to
be redirected to \\%HOMESHARE%%HOMEPATH%, the final expanded path was
\\\\Server1\home\JDOE\. The following error occurred:
The network path was not found.
 
H

Herb Martin

D Hagstrom said:
I have created a My Documents redirection GPO with the setting of
Basic-Redirect everyone's folder to the same location and target folder
location is set to Redirect to the user's home folder. When I look in the
GPO console, it shows the setting as Path: \\%HOMESHARE%%HOMEPATH% which,
when copied to the run dialog box does not work, and I have the following
App ID 101 error show up, which shows that the above path is translated to
\\\\servername\share. My question is where are the extra \'s coming from?

You are adding the "extra" backslashes.

Whenever you have a question about the current value of an environment
variable just open a command prompt and type "set" plus the first few
letters
of the name (don't use wildcards, just the beginning of the name will find
everything that starts with those characters):

set home

You will see that %homepath% comes with its own backslashes and so
when YOU add them they are extra and incorrect.
You cannot edit the path using the above redirect method and the home
folder in AD connects just fine. I have been able to fix this by
redirecting everyone's folder to the same location and then using the
%homeshare% variable, but I am just curious.

%Homeshare% is of the form \\share
%homepath% is of the form \directory\subdir

Just run them together to reference the full path.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top