My Music Redirection - Custom ADM files
Posted on 2005-03-15
I've read all the posts on redirecting the My Music folder and don't agree that it can't be done. I've nearly got it finished but need help figuring out one detail. Here is the scenario. Initially i tried using a script to get the redirection working only to find that if the script loads after the desktop has already been loaded the registry entries are pretty much useless (at least for folder redirection). So, I tried running the scripts synchronously only to find out that the GPO takes precedence over the script and essentially nullifies the entries that the script changes. I've finally come to writing my own .adm file and loading it into the GPO directly. This seems to work fine except that I'm using this GPO for multiple users and the My Music destination needs to change to their local profile. When writing a script it is possible to get that information using the %username% variable (which can be attained by querying the system) however using the same variable in the .adm file writes the exact path in the registry and not the decoded path ex. I want to send music to C:\Documents and Settings\billy.crystal\My Documents\My Music where 'billy.crystal' is %username% initially but when the GPO is loaded I get C:\Documents and Settings\%username%\My Documents\My Music in the registry and not the actual user's name. Does anyone know how to resolve this?
I suspect there is an answer to this because when you redirect the My Pictures folder in the MMC console you are allowed to use the %username% variable in the path.