Solved

Excluding My Music and My Pictures from folder redirection (My documents)

Posted on 2008-10-16
5
2,543 Views
Last Modified: 2013-11-06
I have folder redirection of "My Documents" in a Windows 2003 Server environment.  Folders such as "My Pictures" and "My Music" are inside the My Documents folder and redirected to server.  iTunes music and personal pictures should not be saved on corporate file server.  I looked at GPO: \\User Configuration\Administrative Templates\System\User Profiles\"Exclude directories in roaming profile" but this only lets me exclude from user profile's root path, not from inside the My Documents folder.
0
Comment
Question by:virtech
  • 3
  • 2
5 Comments
 
LVL 31

Expert Comment

by:Henrik Johansson
ID: 22736663
In Vista/2008, the profile structure has been redesigned to have this folders as parallell folders instead of subfolders and can be managed with native folder redirection.

In XP/2003, you nead to modify the registry manual or by custom ADM
HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders
Create REG_EXPAND_SZ named 'My Music' and point it to your own path. If the folder contains data, you nead to script or manual move that to the new location.

For 'My Pictures': In redirection policy for 'My Documents', click Settings-tab and change the radio button of 'My Pictures Preferences' to not follow 'My Documents'. If you want to use a custom location, do the same thing as with 'My Music'
0
 

Author Comment

by:virtech
ID: 22741045
Great suggestion, what is "custom ADM"?
0
 

Author Comment

by:virtech
ID: 22741168
"For 'My Pictures': In redirection policy for 'My Documents', click Settings-tab and change the radio button of 'My Pictures Preferences' to not follow 'My Documents"  This is grayed-out.  I cannot change radio button.
0
 
LVL 31

Accepted Solution

by:
Henrik Johansson earned 500 total points
ID: 22747497
I missed that "My Pictures Preferences" can only be edited when creating a new redirection policy and not when editing an existing.

ADM is the file extension for Administrative Templates. Copy the attached code snippet into notepad and save it as %WINDIR%\inf\mymusic.adm
Use GPMC to create a GPO and import the ADM. As the policy isn't using the Policies-hive in registry, you nead to use View|Filtering and untick the "Only show policy settings that can be fully managed" to see the policy setting.

If not having GPMC installed, it can be downloaded here:
http://www.microsoft.com/downloads/details.aspx?FamilyID=0a6d4c24-8cbd-4b35-9272-dd3cbfc81887&displaylang=en

CLASS USER
  CATEGORY MyMusic
    KEYNAME "SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders"
     POLICY "My Music"
       EXPLAIN !!MyMusicExplain
       PART "Location" EDITTEXT REQUIRED EXPANDABLETEXT DEFAULT "%USERPROFILE%\My Music"
       VALUENAME "My Music"
     END PART
  END POLICY
END CATEGORY
 
[strings]
MyMusicExplain="Custom folder redirection policy for My Music"

Open in new window

0
 

Author Comment

by:virtech
ID: 23142091
Good
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

840 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