Folder Redirection issue

I've implemented folder redirection in combination with romaing profiles to overcome the problem that the clients have to sync its huge profiles with the domain controller everytime they log on and off.

So my plan was to move "Download", "Desktop", "Pictures" and so on to local path depending on the computer the user is logged on.

For this I'm setting a environment variable depending on the computer the user logs in.

eg:

user a: DATADIR=C:\FolderRedirect

user b: DATADIR=D:\FolderRedirect

However sometimes (yes, not every time) if I logon to a computer the Desktop and all the actually redirected folders path are not correct even that the env vars ARE correct. I have no idea where that wrong folder redirection path are coming from in that specific moment.

So to make it simple, user "a" gets folder redirection from user "b" in that situation although the env vars for user "a" are set for user "a" and the group policys are applied as the should (checked via gpresult /r)! How can that be?

What am I missing here?

gpo structure:

domain

`ou clients`

	`gpo "ProfileFolder 1" DATADIR=D:\FolderRedirect via security filtering containing a group with the computer objects`

`ou server`

	`gpo "ProfileFolder 2" DATADIR=C:\FolderRedirect	via security filtering containing a group with the computer objects`

`ou Domain Users`

	`gpo "folder redirection" via security filtering containing a group with the users objects`

As I said the gpos are applied correctly in every case but for some reason the actual location of the eg the "Download" folder is set to the path from another users group

What am I missing here?

Thanks!

Posted Jun 9, 2018, 10:28 AM UTC

12
samjoe89•

What Forest functional level is the domain at? Gpos are setting the folder redirection paths? Are you using any wildcards in the variables for the folder redirection paths?

1
strrrnOP•

Thanks for trying to help me out :)

Forest functional level is: Windows Server 2016

You are correct, the redirection paths are set via gpos like so:

1st gpo: defines "DATADIR" and "DATADRIVE" environment variables depending on the particular computer like so: Path %DATADRIVE%FolderRedirect

  1. DATADRIVE

Action Replace

Context System Variable DATADRIVE value F:\

  1. DATADIR

Action Replace

Context System Variable DATADIR value %DATADRIVE%FolderRedirect

-----------------------------------------

2nd gpo: sets the actual redirection: %DATADIR%\%USERNAME%\Documents

Does this make sense to you?

1