Because I’m a stickler for clean UI, I want to ensure users don’t see extra files or folders in their User folder on Windows Vista. I’m trying to avoid something similar to what you can see in the screenshot below, which looks a little out of place:

This location in the UI replaces the Documents folder as the top level navigation tool but it essentially gives you a view of the user profile (%USERPROFILE%). As such, this location cannot be redirected to the network, so it would be advantageous to prevent users from adding data to this folder – otherwise you will need to manage that data. Leaving it inside the roaming profile is probably not the best solution.
Fortunately, Microsoft provide a Group Policy setting that will prevent users from adding files to to this location:
- User Configuration / Policies / Administrative Templates / Windows Components / Windows Explorer / Prevent users from adding files to the root of their User Files folder

When this policy is enabled users will see this behaviour when attempting to copy files into their User folder:

This works well for Explorer but unfortunately I’m struggling to find applications that honour this setting, with Office Communicator and even Windows Live Messenger 9 the biggest culprits so far. These applications create a Tracing folder that is used for diagnostic logging. These keys control where the log is created:
- HKCU\Software\Microsoft\Tracing\uccapi\WindowsLiveMessenger\FileDirectory
- HKCU\Software\Microsoft\Tracing\uccp\Communicator\FileDirectory
- HKCU\Software\Microsoft\Tracing\WPPMedia\WPPFilePath
- HKCU\Software\Microsoft\Tracing\WPPMedia\Debug\WPPFilePath
For each key I’ve changed %USERPROFILE% to %APPDATA% (scripted of course..)

So as we rollout Windows Vista, I’m going to have to keep an eye on more applications but I think I could be in for a losing battle.


{ 5 comments }
You might like a clean profile folder, but why FORCE this on your poor users?
I’ve updated the post with some additional reasoning: “This location in the UI replaces the Documents folder as the top level navigation tool but it essentially gives you a view of the user profile (%USERPROFILE%). As such, this location cannot be redirected to the network, so it would be advantageous to prevent users from adding data to this folder – otherwise you will need to manage that data.”
Actually, it’s not only %USERPROFILE% where applications create their data in, also %USERPROFILE%\Documents is infected by that illness. I want to place my documents to this place because it seems someone has designed that folder to be the folder for my documents. And it’s me who defines what a document is and what not.
However, some applications create their own folder there (like “%USERPROFILE%\Documents\My Games\Gas Powered Games” or “%USERPROFILE%\Documents\Visual Studio 2008″.
It’s sad that I need an application that blocks applications from creating files and folders there.
Thanks Aaron, just stumbled across this. Very useful, although it occurs to me that just hiding all folders that aren’t supposed to be viewed by the user might be a simpler solution?
To Nusi, if you ban programs from the profile folder AND the documents folder, where are programs going to dump their crap? Poor programs, nobody is their friend.
Glad to hear I could help James.
Comments on this entry are closed.