Solved

server 2012r2 Folder Redirection not completely working

Posted on 2013-12-10
12
2,317 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 9
  • 3
12 Comments
 
LVL 18

Expert Comment

by:Andrew Davis
ID: 39710683
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
ID: 39711969
so lets say a new user logs in, will that script create his folders like the GPO does?
0
 

Author Comment

by:Comptx
ID: 39712152
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
Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

 

Author Comment

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

Author Comment

by:Comptx
ID: 39712376
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
ID: 39712454
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
 

Author Comment

by:Comptx
ID: 39712468
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
ID: 39712544
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
ID: 39712870
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
ID: 39715678
which folder does that script redirect?
0
 
LVL 18

Expert Comment

by:Andrew Davis
ID: 39715913
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
ID: 39717883
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

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

My GPO's made for 2008 R2 servers were not allowing me to RDP into a new 2012 server by default.  That’s why I tried to allow RDP via Powershell, because I could log into a remote shell without further configuration. Below I will describe how I wen…
Resolve DNS query failed errors for Exchange
In this Micro Tutorial viewers will learn how they can get their files copied out from their unbootable system without need to use recovery services. As an example non-bootable Windows 2012R2 installation is used which has boot problems.
In this Micro Tutorial viewers will learn how to restore their server from Bare Metal Backup image created with Windows Server Backup feature. As an example Windows 2012R2 is used.

752 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