Citrix: Remove Favorites from the Explorer in Windows 7/ Windows 2008 R2

I often publish a desktop in my projects and most of the times the new favorites folder in the explorer has to be removed because it’s not easily managed. I found the following method is pretty straightforward and works too.

Yuri Haak and a couple of other smart guys figured this out on the RESUG forum so I took their tips and made some automation possible. To change the reg keys that can remove the favorites from the explorer you first have to change the rights on the registry key, I did this by using Helge Klein’s SetACL which is an easy tool for such small (but tricky) adjustments.

 

The following command lines can be used:

“SetACL_x64.exe -on “HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{323CA680-C24D-4099-B94D-446DD2D7249E}\ShellFolder” -ot reg -actn ace -ace “n:Administrators;p:full”

“SetACL_x64.exe -on “HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{323CA680-C24D-4099-B94D-446DD2D7249E}\ShellFolder” -ot reg -actn ace -ace “n:Administrators;p:full”

After setting the appropriate rights you can change the reg keys so that the Favorites aren’t displayed anymore, I did this by using the following reg file:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{323CA680-C24D-4099-B94D-446DD2D7249E}\ShellFolder]

“Attributes”=dword:a9400100

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Classes\CLSID\{323CA680-C24D-4099-B94D-446DD2D7249E}\ShellFolder]

“Attributes”=dword:a9400100

To use this you can save the text into a .reg file and import the file by using the following command:

regedit -s Disable_Favorites.reg

After a reboot the Favorites folder won’t be displayed in the Explorer anymore.

Note: Do this on a test server first before you implement this on your production environtment.

 

 

The following two tabs change content below.

Kees Baggerman

Kees Baggerman is a Staff Solutions Architect for End User Computing at Nutanix. Kees has driven numerous Microsoft and Citrix, and RES infrastructures functional/technical designs, migrations, implementations engagements over the years.

2 comments

  1. Hi Kees,

    I think the first SetACL command should read “SetACL_x64.exe -on “HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{323CA680-C24D-4099-B94D-446DD2D7249E}\ShellFolder” -ot reg -actn ace -ace “n:Administrators;p:full” (no Wow6432Node)?

    Thanks, Iain

  2. k.baggerman says:

    Hi Iain, you’re spot on. Changed the examples. Thanks!

Leave a Reply

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