Desktop Icons, hide, show, prevent rename or delete

I was cleaning up some old data on my Hard Drive when I found a program I wrote about a year ago.

At that time I was doing a project where I was deploying a Windows 2008 based Citrix Environment.

I wanted to get rid of the new Personal Folders or User’s files icon on the Desktop and replace it with the familiar My Documents icon.


These settings are stored in the Registry under HKEY_CLASSES_ROOT\CLSID\{folder’s GUID}\ShellFolder.

More specifially the Attributes Value is a bitmask that determines if the Folder

  • can be Copied
  • can be Deleted
  • can be Linked to
  • can be Moved
  • can be Renamed
  • is Hidden
  • can be Dropped files to

So I wrote a small program that can adjust these values:


It contains a few pre-defined Folders and shows you the registry key and the value for the Attributes mask (and of course it can write the value for you).

Have fun with it and let me know if you like it!

Desktop Icons Tool (1181)

Leave a Reply

  1. Pingback: Prevent rename or removal of the My Documents icon on the desktop | Remko Weijnen's Blog (Remko's Blog)

  2. Does not work at all on my XP. Keep getting ‘Error opening key CLSID\xxxxxxxx\ShellFolder for reading’.