How to restrict the My Computer icon

By | 2007-01-01

There is no easy way to remove the My Computer icon from the desktop. It is possible, however, to restrict it so that no action is performed when someone attempts to double-click this icon. Here is the procedure:

  • Run Registry Editor (RegEdit.exe).
    Please be very careful when using this tool, because if you do something wrong with it, you may end up reinstalling Windows from scratch!
  • Find the following key in the Registry:
    HKEY_CLASSES_ROOT CLSID {20D04FE0-3AEA-1069-A2D8-08002B30309D} shell
    Create a new subkey under this key and rename it to open(To create the subkey: right-click on shell, select New – Key from the shortcut menu, and then enter open as the name of the new key.) Now create another subkey, command, under the key open. The resulting structure of these keys should look like the following:
    shell open command
  • Now select the command subkey you’ve just created and open the Default value of this key (by double-clicking (Default) in the right pane of the Registry Editor window) and specify the following command as its Value dataExplorer.exe /root

Now, whenever the user attempts to open the My Computer item on the Desktop, it will not open. To restore the original functioning of the My Computer icon, simply delete the open and command keys you’ve created during the procedure.

Note: Changing this setting affects all users of the computer.

Note: It is very easy to bypass this protection: simply right-click on the My Computer icon, and choose Open from the shortcut menu.

Author: dwirch

Derek Wirch is a seasoned IT professional with an impressive career dating back to 1986. He brings a wealth of knowledge and hands-on experience that is invaluable to those embarking on their journey in the tech industry.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.