Keeping The Windows Vista User Folder Clean

in Windows

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:

Computer

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

ExplainPolicy

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

ComputerDragDrop

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..)

AppData

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.

This website uses IntenseDebate comments, but they are not currently loaded because either your browser doesn't support JavaScript, or they didn't load fast enough.

{ 5 comments }

1 asf September 18, 2008 at 11:43 pm

You might like a clean profile folder, but why FORCE this on your poor users?

2 Aaron Parker September 19, 2008 at 7:34 am

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.”

3 Nusi September 21, 2008 at 12:16 pm

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.

4 James January 14, 2009 at 3:05 am

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. ;)

5 Aaron Parker January 14, 2009 at 7:09 pm

Glad to hear I could help James.

Comments on this entry are closed.

Previous post:

Next post: