Solved

server 2012r2 Folder Redirection not completely working

Posted on 2013-12-10
12
2,184 Views
Last Modified: 2014-02-28
hello, we are currently running a mix of 2008 and 2003 servers on the client. redirection worked fine on server 08r2, and somewhat on 2003 (some users were messed up, and refused to update redirection from old destination server to new one))

we decided to replace the 2003 terminal servers with new 2012r2 terminal servers. everything seemed to work fine, but I noticed some folders are not being redirected.

RSOP shows the ones that are working, but its missing "My documents", gpresult shows the policy being applied as well, no errors on event log.. I even installed gpo management on the 2012 server, went and modified the gpo (untick and retick) just to make sure but no luck.


if I click start (using Start8 to bring back the real Start Menu" and right click "Documents" and then go to location and try to set the location to the \\domain
dfs\user\" share " it tells me it cannot add it because its not indexed, but if I click start, then go to computers and right click my documents from there and change the location path to the network share, it lets me change it. obviously I need this to be automatic like it was on 2008r2.

offline files are disabled, and we are using DFS between 2 sites.

any ideas why is not working? this is my first deployment of 2012r2 so im new to it.
0
Comment
Question by:Comptx
  • 9
  • 3
12 Comments
 
LVL 18

Expert Comment

by:Andrew Davis
Comment Utility
you may need to look at log files on both the server and the client.
If all else fails then you could set them via a logon script.

if fso.folderexists("\\domain
dfs\user\") then
  wshShell.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\Personal","\\domain
dfs\user\"
End If

Open in new window


cheers
Andrew
0
 

Author Comment

by:Comptx
Comment Utility
so lets say a new user logs in, will that script create his folders like the GPO does?
0
 

Author Comment

by:Comptx
Comment Utility
I created a test user, logged in to server 2003 server, everything works.

logged in to the 2012 server and on the application event log is see the following only for the folders that were redirected OK., which are links, favorites, downloads and contacts.

Successfully applied policy and redirected folder "Links" to "\\domain\dfs\users\testtest".
 Redirection options=0x1001.

then on the application/Microsoft/folder redirect event log I see the following for the folders that were redirected OK:

Folder "Favorites" has to be redirected.
 Redirection options = 0x1001.
 Parent folder = "{00000000-0000-0000-0000-000000000000}".
 Path = "\\domain\dfs\Users\userfavorites\%USERNAME%\Favorites".
 Group = s-1-1-0.


then this for the ones that were NOT redirected:

Folder "Desktop" has to be redirected.
 Redirection options = 0x80008004.
 Parent folder = "{00000000-0000-0000-0000-000000000000}".
 Path = "".
 Group = s-1-1-0.


seems its missing the path, but not sure why it would work on 2003,2008 and not in 2012...

typing the full path on an explorer window works just fine on the 2012..
0
 

Author Comment

by:Comptx
Comment Utility
also, RSOP on the 2012 server does not show documents or Desktop as being redirected.
0
 

Author Comment

by:Comptx
Comment Utility
ok, I might have figured it out..  I created a test virtual environment with a new 2012 dc and terminal server.

configured group policy folder redirect again on the test DC and noticed that at least for the documents folder, on 2008 and earlier its called  "my documents". on win8/2012 its called just  "Documents"

created a new user, logged in to test terminal, and redirection was applied successfully.

still cant explain why it would also affect "Desktop" since that's called the same on all versions.

gonna create an OU on the production, and going to move the server there and create a brand new policy with the right 2012 wording just for that OU and see how it works..
0
 

Author Comment

by:Comptx
Comment Utility
well, running in to an issue now where the server refuses to see the new policy I made for it. its still seeing the old redirection policy. the old one is not set on enforced, and the OU is being blocked from inheriting, so I only have one policy enforced on that same ou, which is the new redirection policy...

might have to redo this server if this doesn't work soon
0
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 

Author Comment

by:Comptx
Comment Utility
the only way I stop it from seeing the old redirection is if I disable the link, but even then it doesn't see the new one
0
 

Author Comment

by:Comptx
Comment Utility
just realized that I keep seeing it because its a user policy, not a computer one..

I made the same changes from the working test lab to production but it still didn't work, its stuck with old settings. guess no choise but to redo the server so it applies the correct one from the start, unless someones has any other ideas.
0
 
LVL 18

Accepted Solution

by:
Andrew Davis earned 500 total points
Comment Utility
Sorry for the delay, Guess we are on opposite sides of the world.

OK you may need to delete all the policies on the client server (2012) then run gpupdate /force to renew them.

For the logon script here is the full script. This will create the folder if it doesnt exist.

Dim objNetwork, objFSO
Dim strDriveLetter, strUNCPath, strUser, WshShell
'WScript.Echo "Starting Script!"

Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objNetwork= CreateObject("Wscript.Network")
strUser =objNetwork.UserName
strUNCPath = "\\domain\dfs\"

'This will create the folder if it doesnt exist.
objFSO.CreateFolder(strUNCPath & "\" & strUser)

Set WshShell = WScript.CreateObject("WScript.Shell")
wshShell.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\Personal", strUNCPath & "\" & strUser

Open in new window


Cheers
Andrew
0
 

Author Comment

by:Comptx
Comment Utility
which folder does that script redirect?
0
 
LVL 18

Expert Comment

by:Andrew Davis
Comment Utility
sorry should have said that one redirects the documents folder.

If you use regedit to go to that location you will see all the folders listed.


Cheers
Andrew
0
 

Author Comment

by:Comptx
Comment Utility
only favorites and downloads are getting redirected out of all the folders i set. not sure why on a test enviroment it works, but not on the pruduction....

rsop only shows me those 2 folders as well, and gpresult says its applying policy

what a pain
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

In my previous 24 VMware Articles (http://www.experts-exchange.com/ARTH_1864316.html?arthOrderBy=3&arthSort=1#arth), most featured Intermediate VMware Topics. My next series of articles concentrated on topics for the VMware Novice;   If you would…
Understanding the various editions available is vital when you decide to purchase Windows Server 2012. You need to have a basic understanding of the features and limitations in each edition in order to make a well-informed decision that best suits y…
In this Micro Tutorial viewers will learn how to restore single file or folder from Bare Metal backup image of their system. Tutorial shows how to restore files and folders from system backup. Often it is not needed to restore entire system when onl…
This tutorial will walk an individual through the process of installing of Data Protection Manager on a server running Windows Server 2012 R2, including the prerequisites. Microsoft .Net 3.5 is required. To install this feature, go to Server Manager…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now