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 ...
-
21st August 2008, 01:18 PM #1
- 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
-
-
IDG Tech News
-
21st August 2008, 01:18 PM #2 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.
-
-
21st August 2008, 01:24 PM #3 What server OS do you use?
Z
-
-
21st August 2008, 01:40 PM #4
- Rep Power
- 0

Originally Posted by
FN-Greatermanchester
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.
-
-
21st August 2008, 01:41 PM #5
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).
-
-
21st August 2008, 01:50 PM #6 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...
-
-
21st August 2008, 01:54 PM #7 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
-
-
21st August 2008, 01:55 PM #8
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.
-
-
21st August 2008, 02:01 PM #9
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.
-
-
21st August 2008, 02:06 PM #10 
Originally Posted by
Michael
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.
-
-
21st August 2008, 02:07 PM #11 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.
-
-
21st August 2008, 02:12 PM #12 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
-
-
21st August 2008, 02:24 PM #13
- 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.
-
-
21st August 2008, 02:35 PM #14 for the group policy you just put my music.
If you want to store them locally you will have to use them scripts.
Z
-
-
21st August 2008, 04:31 PM #15
- 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:
Similar Threads
-
By BKGarry in forum Windows
Replies: 7
Last Post: 7th May 2008, 08:07 PM
-
By Newton in forum Windows
Replies: 4
Last Post: 14th April 2008, 09:26 AM
-
By Ric_ in forum BETT 2012
Replies: 13
Last Post: 19th January 2008, 12:32 AM
-
By markwilliamson2001 in forum Windows
Replies: 5
Last Post: 18th January 2008, 04:02 PM
-
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
-
Forum Rules