Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1965
  • Last Modified:

Favorites Folder Redirection with GPO

I'm trying to redirect all my users "Favorites" to their folders on the domain controller (domaincontroller). I ran across this on another site, so I've done everything there and still don't see a "Favorites" folder in my user folder on the domain controller (I am using myself as a test. I've created an OU "Test Users" and put myself in there. I added the default doman policy, changed the name, and added the "Favorites" administrative template to the policy.

Procedure completed (create a .adm file in notepad):

CLASS USER
CATEGORY !!WindowsComponents
CATEGORY !!InternetExplorer
CATEGORY !!IE_Favorites
KEYNAME "Software\Microsoft\Windows\CurrentVersion\Explorer \User Shell Folders"

POLICY !!IE_Favorites
#if version >= 4
SUPPORTED !!SUPPORTED_IE5
#endif

EXPLAIN !!IE_Favorites_Location_Explain

PART !!IE_Favorites_Location_Tip1 TEXT
END PART

PART !!IE_Favorites_Location EDITTEXT EXPANDABLETEXT
VALUENAME Favorites
DEFAULT %USERPROFILE%\Favorites
;; MAXLEN 120
REQUIRED
END PART
END POLICY

END CATEGORY ;; IE_Favorites
END CATEGORY ;; Internet Explorer
END CATEGORY ;; WindowsComponents


[strings]

WindowsComponents="Windows Components"
IE_Favorites="Location of Internet Explorer Favorites"
IE_Favorites_Location="The path to the favorites folder"
IE_Favorites_Location_Explain="Specify the path to the location of favorites. You can use variables like %USERPROFILE%, %USERNAME%, etc... Both local and UNC path are valid."
IE_Favorites_Location_Tip1="Specify the UNC path to the favorites location"
InternetExplorer="Internet Explorer"
SUPPORTED_IE5="at least Internet Explorer v5.01"

Once I created this file. I added it to Default Domain Policy in the "User Configuration" "Administrative Templates" section.
This has to be done to see the policy setting:
After you add the custom administrative template and in the GPO editor uncheck:
View->Filtering->Only show policy settings that can be fully managed, you will find the settings you are interested in at the location shown in the picture.

I enable the setting and give this as the unc path for the redirection...
\\domaincontroller\Users$\%USERNAME%\Favorites

When I force the gpupdate in the command prompt I don't see the "Favorites" folder in my folder on the server. I've also restarted and logged out and back in numerous times. I can't figure out what has went wrong. The guy that created the file above said his works perfectly.
0
fnbtech
Asked:
fnbtech
  • 6
  • 6
2 Solutions
 
Abhay PujariCommented:
Have you tried gpupdate on your machine? Are there any errors on your machine in the event viewer? Have you tried gpresult and RSOP?
0
 
fnbtechAuthor Commented:
I have opened the command prompt and ran gpupdate /force. No errors regarding this issue in the event viewer. What is RSOP? I ran gpresult and this is what I get:

Microsoft (R) Windows (R) XP Operating System Group Policy Result tool v2.0
Copyright (C) Microsoft Corp. 1981-2001
Created On 4/2/2009 at 9:16:35 AM

RSOP results for domain\userid on machinename : Logging Mode
-----------------------------------------------------------
OS Type:                     Microsoft Windows XP Professional
OS Configuration:            Member Workstation
OS Version:                  5.1.2600
Domain Name:                 Domain
Domain Type:                 Windows 2000
Site Name:                   Main
Roaming Profile:
Local Profile:               C:\Documents and Settings\username
Connected over a slow link?: No

COMPUTER SETTINGS
------------------
    CN=machinename,CN=Computers,DC=domain,DC=local
    Last time Group Policy was applied: 4/2/2009 at 7:40:41 AM
    Group Policy was applied from:      domaincontroller.domain.local
    Group Policy slow link threshold:   500 kbps
    Applied Group Policy Objects
    -----------------------------
        Test User Policy
    The following GPOs were not applied because they were filtered out
    -------------------------------------------------------------------
        Local Group Policy
            Filtering:  Not Applied (Empty)
    The computer is a part of the following security groups:
    --------------------------------------------------------
        BUILTIN\Administrators
        Everyone
        BUILTIN\Users
        NT AUTHORITY\NETWORK
        NT AUTHORITY\Authenticated Users
        machinename$
        Domain Computers

USER SETTINGS
--------------
    CN=user,OU=Test Users,DC=domain,DC=local
    Last time Group Policy was applied: 4/2/2009 at 9:15:44 AM
    Group Policy was applied from:      domaincontroller.domain.local
    Group Policy slow link threshold:   500 kbps
    Applied Group Policy Objects
    -----------------------------
        Test User Policy
        Test User Policy
    The following GPOs were not applied because they were filtered out
    -------------------------------------------------------------------
        Local Group Policy
            Filtering:  Not Applied (Empty)
    The user is a part of the following security groups:
    ----------------------------------------------------
        Domain Users
        Everyone
        Remote Desktop Users
        BUILTIN\Users
        BUILTIN\Administrators
        NT AUTHORITY\INTERACTIVE
        NT AUTHORITY\Authenticated Users
        LOCAL
        Domain Admins
        Group Policy Creator Owners
        Enterprise Admins
        DHCP Administrators
        DnsAdmins
0
 
Abhay PujariCommented:
RSOP is the Resultant set of policy which shows you what policies are applied to user and in which order. To run this you need to go to active directory users and computers-- then go to this OU, right click it. Point to all tasks and then select resultant set of policy.
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
fnbtechAuthor Commented:
I ran the RSOP and it shows that the setting should be there, but it doesn't work.
0
 
Abhay PujariCommented:
What did it show? Have you created new policy for this OU?
0
 
fnbtechAuthor Commented:
Administrative Templates
    Windows Components/Internet Explorer/Location of Internet Explorer Favorites\
        Policy
            Location of Internet Explorer Favorites                                                                                    Enabled
                    Specify the UNC path to the favorites location The path to the favorites folder         \\mainsvr\users$\%USERNAME%\Favorites
0
 
Abhay PujariCommented:
"\\mainsvr\users$\%USERNAME%\Favorites" Is this a valid UNC path? As per my logic it should not.
0
 
fnbtechAuthor Commented:
0
 
Abhay PujariCommented:
Read these documents before replicating your friend's environment http://technet.microsoft.com/en-us/library/cc782799.aspx and http://technet.microsoft.com/en-us/library/cc781907.aspx.
0
 
fnbtechAuthor Commented:
Here is what everything looks like.
GP-Setting.jpg
GP-Setting2.jpg
0
 
fnbtechAuthor Commented:
I found the answer to my own problem.
all the threads that I have found said this is the way to do it:
CLASS USER
CATEGORY !!WindowsComponents
CATEGORY !!InternetExplorer
CATEGORY !!IE_Favorites
KEYNAME "Software\Microsoft\Windows\CurrentVersion\Explorer \User Shell Folders"

POLICY !!IE_Favorites
#if version >= 4
SUPPORTED !!SUPPORTED_IE5
#endif

EXPLAIN !!IE_Favorites_Location_Explain

PART !!IE_Favorites_Location_Tip1 TEXT
END PART

PART !!IE_Favorites_Location EDITTEXT EXPANDABLETEXT
VALUENAME Favorites
DEFAULT %USERPROFILE%\Favorites
;; MAXLEN 120
REQUIRED
END PART
END POLICY

END CATEGORY ;; IE_Favorites
END CATEGORY ;; Internet Explorer
END CATEGORY ;; WindowsComponents


[strings]

WindowsComponents="Windows Components"
IE_Favorites="Location of Internet Explorer Favorites"
IE_Favorites_Location="The path to the favorites folder"
IE_Favorites_Location_Explain="Specify the path to the location of favorites. You can use variables like %USERPROFILE%, %USERNAME%, etc... Both local and UNC path are valid."
IE_Favorites_Location_Tip1="Specify the UNC path to the favorites location"
InternetExplorer="Internet Explorer"
SUPPORTED_IE5="at least Internet Explorer v5.01"
However, I reset the "user shell folder" favorites setting back to original, and made this change:
CLASS USER
CATEGORY !!WindowsComponents
CATEGORY !!InternetExplorer
CATEGORY !!IE_Favorites
KEYNAME "Software\Microsoft\Windows\CurrentVersion\Explorer \Shell Folders"

POLICY !!IE_Favorites
#if version >= 4
SUPPORTED !!SUPPORTED_IE5
#endif

EXPLAIN !!IE_Favorites_Location_Explain

PART !!IE_Favorites_Location_Tip1 TEXT
END PART

PART !!IE_Favorites_Location EDITTEXT EXPANDABLETEXT
VALUENAME Favorites
DEFAULT %USERPROFILE%\Favorites
;; MAXLEN 120
REQUIRED
END PART
END POLICY

END CATEGORY ;; IE_Favorites
END CATEGORY ;; Internet Explorer
END CATEGORY ;; WindowsComponents


[strings]

WindowsComponents="Windows Components"
IE_Favorites="Location of Internet Explorer Favorites"
IE_Favorites_Location="The path to the favorites folder"
IE_Favorites_Location_Explain="Specify the path to the location of favorites. You can use variables like %USERPROFILE%, %USERNAME%, etc... Both local and UNC path are valid."
IE_Favorites_Location_Tip1="Specify the UNC path to the favorites location"
InternetExplorer="Internet Explorer"
SUPPORTED_IE5="at least Internet Explorer v5.01"
It makes the change to the "Shell Folders" favorites setting instead. This in turn also makes the change to the "User Shell Folders" favorites setting. There is however 1 problem. You need a backup/export of the favorites before you implement this change, because if you don't, they will all be gone. Once you have that backup/export, implement this GPO setting and then import/restore your favorites and they will be where you want them. When you add a new or delete an old, they will be using the location you set in the GPO, not the default location anymore. I am now needing to figure out how to do this without having to make the backup/export of the favorites. I want to basically "Merge" the favorites to the new location, then have the setting above take place ;)
0
 
Abhay PujariCommented:
Good. Glad to hear that you got right settings. Always try to follow Misrosoft's articles.
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

  • 6
  • 6
Tackle projects and never again get stuck behind a technical roadblock.
Join Now