Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Favorites Folder Redirection with GPO

Posted on 2009-04-02
12
Medium Priority
?
1,912 Views
Last Modified: 2012-05-06
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
Comment
Question by:fnbtech
[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
  • 6
  • 6
12 Comments
 
LVL 11

Assisted Solution

by:Abhay Pujari
Abhay Pujari earned 80 total points
ID: 24050003
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
 

Author Comment

by:fnbtech
ID: 24050147
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
 
LVL 11

Expert Comment

by:Abhay Pujari
ID: 24050201
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
Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

 

Author Comment

by:fnbtech
ID: 24050327
I ran the RSOP and it shows that the setting should be there, but it doesn't work.
0
 
LVL 11

Expert Comment

by:Abhay Pujari
ID: 24050462
What did it show? Have you created new policy for this OU?
0
 

Author Comment

by:fnbtech
ID: 24050660
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
 
LVL 11

Expert Comment

by:Abhay Pujari
ID: 24050721
"\\mainsvr\users$\%USERNAME%\Favorites" Is this a valid UNC path? As per my logic it should not.
0
 
LVL 11

Expert Comment

by:Abhay Pujari
ID: 24050801
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
 

Author Comment

by:fnbtech
ID: 24051703
Here is what everything looks like.
GP-Setting.jpg
GP-Setting2.jpg
0
 

Accepted Solution

by:
fnbtech earned 0 total points
ID: 24053086
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
 
LVL 11

Expert Comment

by:Abhay Pujari
ID: 24057186
Good. Glad to hear that you got right settings. Always try to follow Misrosoft's articles.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Had a business requirement to store the mobile number in an environmental variable. This is just a quick article on how this was done.
Wouldn't it be nice if objects in Active Directory automatically moved into the correct Organizational Units? This is what AutoAD aims to do and as a plus, it automatically creates Sites, Subnets, and Organizational Units.
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles from a Windows Server 2008 domain controller to a Windows Server 2012 domain controlle…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Suggested Courses

715 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