+ Post New Thread
Page 1 of 2 12 LastLast
Results 1 to 15 of 27
Windows Thread, Redirecting My Pictures/My Music Folder in Technical; Hi, I am just wondering the best way to tweak Folder Redirection. We have it implemented here on our Vanilla ...
  1. #1

    Join Date
    Sep 2006
    Location
    London
    Posts
    31
    Thank Post
    3
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Redirecting My Pictures/My Music Folder

    Hi,

    I am just wondering the best way to tweak Folder Redirection. We have it implemented here on our Vanilla network. However, I am finding people with ove 5GB of music on in their My Music folder and its taking a lot of disk space. My boss doesn't seem to care for some reason. So I want to implement a way whereby the My Music | My Picture folders do not get redirected to the server but to the user's profile on the C: Drive so at least they have music and personal photo's but its not being backed up.

    Many Thanks

  2. #2


    Join Date
    Feb 2007
    Location
    Northamptonshire
    Posts
    4,706
    Thank Post
    354
    Thanked 807 Times in 722 Posts
    Rep Power
    348
    We use a login script to do it as I found the AD implementation a bit slack on what it allows to be redirected.

    Our script creates a "stuff not backed up" folder in My Documents which our back up script ignores, and also it ignores the "My Music" folder amongst others for the very reason you describe.

  3. #3

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    16,374
    Thank Post
    906
    Thanked 1,811 Times in 1,559 Posts
    Blog Entries
    12
    Rep Power
    468
    What server OS do you use?

    Z

  4. #4

    Join Date
    Sep 2006
    Location
    London
    Posts
    31
    Thank Post
    3
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Quote Originally Posted by FN-Greatermanchester View Post
    What server OS do you use?

    Z
    Server 2003 64-bit.

    I think I recall reading somewhere that Server 2008 takes care of this, hopefully.

  5. #5

    Michael's Avatar
    Join Date
    Dec 2005
    Location
    Birmingham
    Posts
    9,345
    Thank Post
    242
    Thanked 1,602 Times in 1,278 Posts
    Rep Power
    346
    We use a login script to do it as I found the AD implementation a bit slack on what it allows to be redirected.

    Our script creates a "stuff not backed up" folder in My Documents which our back up script ignores, and also it ignores the "My Music" folder amongst others for the very reason you describe.
    This doesn't solve the issue of users using 5GB worth of disk space though does it?

    I see two solutions to this problem - either introduce quotas to your users or alternatively schedule a script to run overnight which searches and deletes any MP3 files found (for example).

  6. #6

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    16,374
    Thank Post
    906
    Thanked 1,811 Times in 1,559 Posts
    Blog Entries
    12
    Rep Power
    468
    These VBS logon scripts will do what you want - You will need to change the destination path

    Code:
    ' Variable Initilisations
    Set objShell = CreateObject("WScript.Shell")
    Set objNetwork = CreateObject("WScript.Network")
    strUserName = objNetwork.UserName
    strRegKey = "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders\My Pictures"
    strRedirectionPath = "T:\Folder"
    
    ' Write the new Favorites path
    objShell.RegWrite strRegKey, strRedirectionPath
    
    ' Variable Destruction
    Set objShell = Nothing
    Set objNetwork = Nothing
    Code:
    ' Variable Initilisations
    Set objShell = CreateObject("WScript.Shell")
    Set objNetwork = CreateObject("WScript.Network")
    strUserName = objNetwork.UserName
    strRegKey = "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders\My Music"
    strRedirectionPath = "T:\Folder"
    
    ' Write the new Favorites path
    objShell.RegWrite strRegKey, strRedirectionPath
    
    ' Variable Destruction
    Set objShell = Nothing
    Set objNetwork = Nothing
    This doesn't solve the issue of users using 5GB worth of disk space though does it?

    I see two solutions to this problem - either introduce quotas to your users or alternatively schedule a script to run overnight which searches and deletes any MP3 files found (for example).
    Or you could just block the file format...

  7. #7

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    16,374
    Thank Post
    906
    Thanked 1,811 Times in 1,559 Posts
    Blog Entries
    12
    Rep Power
    468
    Edited them so they go to the local user profile

    Code:
    ' Variable Initilisations
    Set objShell = CreateObject("WScript.Shell")
    Set objNetwork = CreateObject("WScript.Network")
    strUsername = objNetwork.UserName
    sUser = objNetwork.username
    strUserName = objNetwork.UserName
    strRegKey = "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders\My Pictures"
    strRedirectionPath = "C:\Documents and Settings\" & SUser & "\My Documents\My Pictures"
    
    ' Write the new Favorites path
    objShell.RegWrite strRegKey, strRedirectionPath
    
    ' Variable Destruction
    Set objShell = Nothing
    Set objNetwork = Nothing
    Code:
    ' Variable Initilisations
    Set objShell = CreateObject("WScript.Shell")
    Set objNetwork = CreateObject("WScript.Network")
    strUsername = objNetwork.UserName
    sUser = objNetwork.username
    strUserName = objNetwork.UserName
    strRegKey = "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders\My Music"
    strRedirectionPath = "C:\Documents and Settings\" & SUser & "\My Documents\My Music"
    
    ' Write the new Favorites path
    objShell.RegWrite strRegKey, strRedirectionPath
    
    ' Variable Destruction
    Set objShell = Nothing
    Set objNetwork = Nothing

    Message to mods: sorry about the double post it looks easier to separate them

  8. #8

    Michael's Avatar
    Join Date
    Dec 2005
    Location
    Birmingham
    Posts
    9,345
    Thank Post
    242
    Thanked 1,602 Times in 1,278 Posts
    Rep Power
    346
    Or you could just block the file format...
    This would just stop it from running in Media Player. A user could still copy the files to their directory, couldn't they?

    In the longterm quotas are definitely the answer. If a user chooses to fill it up with MP3s, then that isn't your problem.

  9. #9

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    16,374
    Thank Post
    906
    Thanked 1,811 Times in 1,559 Posts
    Blog Entries
    12
    Rep Power
    468
    This would just stop it from running in Media Player. A user could still copy the files to their directory, couldn't they?
    Nope that can be stopped using the R2 file server features you can use File Server Resource Manager and block them under file screening.

  10. #10


    Join Date
    Feb 2007
    Location
    Northamptonshire
    Posts
    4,706
    Thank Post
    354
    Thanked 807 Times in 722 Posts
    Rep Power
    348
    Quote Originally Posted by Michael View Post
    This doesn't solve the issue of users using 5GB worth of disk space though does it?

    I see two solutions to this problem - either introduce quotas to your users or alternatively schedule a script to run overnight which searches and deletes any MP3 files found (for example).
    It solves it from a network storage angle given I couldn't care less how much they use on their local device.

    I'd discourage deletion of mp3 files as we once tried this and ended up causing more problems than it fixed with our media students.

  11. #11
    Face-Man's Avatar
    Join Date
    Dec 2005
    Location
    London
    Posts
    577
    Thank Post
    11
    Thanked 58 Times in 40 Posts
    Rep Power
    71
    If you have "my music" as a folder in there profile you could use a GPO option to ignore my music (or any other folder). You just need to add it to "user configuration\administative template\system\user profiles\exclude directories in roaming profile". If "my documents" is mapped to their home dirve you could run a logout script to delete my music.

  12. #12

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    16,374
    Thank Post
    906
    Thanked 1,811 Times in 1,559 Posts
    Blog Entries
    12
    Rep Power
    468
    What type of profiles do you use?

    One they know if they save things to my pictures and my music and they dont save wont they make another folder?

    Z

  13. #13

    Join Date
    Sep 2006
    Location
    London
    Posts
    31
    Thank Post
    3
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Thanks for the scripts will give them a go after lunch.

    Where you have put the following line:

    "C:\Documents and Settings\" & SUser & "\My Documents\My Music"

    would this work: "%USERPROFILE%\My Documents\My Music" ?

    P.s. I would like to delete them, but a lot of users listen to stuff here and my boss would like to keep it that way. So we've just decided to move it to there local profile (as we're not using roaming types) and they can listen to there hearts content, but not being backed up which is ideal for us.

  14. #14

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    16,374
    Thank Post
    906
    Thanked 1,811 Times in 1,559 Posts
    Blog Entries
    12
    Rep Power
    468
    for the group policy you just put my music.

    If you want to store them locally you will have to use them scripts.

    Z

  15. #15

    Join Date
    Sep 2006
    Location
    London
    Posts
    31
    Thank Post
    3
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    [QUOTE=FN-Greatermanchester;224137]Edited them so they go to the local user profile

    Code:
    ' Variable Initilisations
    Set objShell = CreateObject("WScript.Shell")
    Set objNetwork = CreateObject("WScript.Network")
    strUsername = objNetwork.UserName
    sUser = objNetwork.username
    strUserName = objNetwork.UserName
    strRegKey = "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders\My Pictures"
    strRedirectionPath = "C:\Documents and Settings\" & SUser & "\My Documents\My Pictures"
    
    ' Write the new Favorites path
    objShell.RegWrite strRegKey, strRedirectionPath
    
    ' Variable Destruction
    Set objShell = Nothing
    Set objNetwork = Nothing
    Code:
    ' Variable Initilisations
    Set objShell = CreateObject("WScript.Shell")
    Set objNetwork = CreateObject("WScript.Network")
    strUsername = objNetwork.UserName
    sUser = objNetwork.username
    strUserName = objNetwork.UserName
    strRegKey = "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders\My Music"
    strRedirectionPath = "C:\Documents and Settings\" & SUser & "\My Documents\My Music"
    
    ' Write the new Favorites path
    objShell.RegWrite strRegKey, strRedirectionPath
    
    ' Variable Destruction
    Set objShell = Nothing
    Set objNetwork = Nothing
    Hi,

    I ran this script and nothing has changed. I'm not sure if it has worked or not.

    I have checked my reg settings and the location of the key:

    HKEY_CURRENT_USER\Software\Microsoft\Windows\Curre ntVersion\Explorer\User Shell Folders\My Pictures

    is now: C:\Documents and Settings\myname\My Documents\My Pictures

    However, I cannot navigate to this folder as it doesn't exist.

    Also, when I go into My Documents and right click My Pictures, the storage location is still: \\servername\share$\username\My Documents\My Pictures

    I am assuming it should have changed? to the registry setting. Have you encountered this before?

    thanks



SHARE:
+ Post New Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. Redirecting My Music in XP/2k3 Environment
    By BKGarry in forum Windows
    Replies: 7
    Last Post: 7th May 2008, 09:07 PM
  2. Redirect My Pictures
    By Newton in forum Windows
    Replies: 4
    Last Post: 14th April 2008, 10:26 AM
  3. Pictures from the show
    By Ric_ in forum BETT 2015
    Replies: 13
    Last Post: 19th January 2008, 12:32 AM
  4. Redirecting Fonts system folder to a network share.
    By markwilliamson2001 in forum Windows
    Replies: 5
    Last Post: 18th January 2008, 04:02 PM
  5. Redirecting applications save folder
    By Wizzer in forum How do you do....it?
    Replies: 14
    Last Post: 22nd November 2006, 01:46 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •