We help IT Professionals succeed at work.

XenAPP 6 Remove Reference to Windows Explorer Libraries, Favorites

I'm setting up a new XenAPP 6 farm that has office published out for all users. When users go to file open or save as they can see documents, downloads favories and libraries. How can remove to hide this for all users? I so I do not have to use folder redirection which I started to do then ended up being a mess
Comment
Watch Question

Check this citrix forum discussion and follow the step to disable libraries and all http://forums.citrix.com/message.jspa?messageID=1483154
CoralonSenior Citrix Engineer

Commented:
I use wenpcfg.exe.  It's a utility written by a guy in Germany, but it works extremely well.  Here is the /? help from it.


Hides or shows the icons of libraries, favorites, network and computer in the na
vigation pane of Windows Explorer and also in Open- and SaveFileDialogs introduc
ed in Windows 7 and Server 2008 R2.
After applying configuration changes you have to restart Explorer shell process
(not only an explorer window).  Simply logoff and logon your windows session.

USAGE:
        WENPCFG [option [option] ... ]

options:
        /HideLibraries  Hide libraries icon in the navigation pane
                        of Windows Explorer.
        /HideFavorites  Hide favorites icon in the navigation pane
                        of Windows Explorer.
        /HideNetwork    Hide network icon in the navigation pane
                        of Windows Explorer.
        /HideComputer   Hide computer icon in the navigation pane
                        of Windows Explorer.
        /ShowLibraries  Show libraries icon in the navigation pane
                        of Windows Explorer.
        /ShowFavorites  Show favorites icon in the navigation pane
                        of Windows Explorer.
        /ShowNetwork    Show network icon in the navigation pane
                        of Windows Explorer.
        /ShowComputer   Show computer icon in the navigation pane
                        of Windows Explorer.
        /Logoff         In order to changes take effect the explorer
                        shell process needs to be restarted. Specifying this
                        option causes your windows session to logoff immediately
.
        /Reboot         In order to changes take effect the explorer
                        shell process needs to be restarted. Specifying this
                        option causes the computer to reboot immediately.
        /Help           Displays this usage information.

Samples:

        Hide libraries and network icon, keep other icons untouched:

        > WENPCFG /HideLibraries /HideNetwork

        Show computer icon, hide network icon and favorites, keep
        libraries untouched and immediately reboot:

        > WENPCFG /ShowComputer /HideNetwork /HideFavorites /Logoff


Author:
        Andreas Fleischmann (andreas.fleischmann@s-inn.de)

Open in new window

Author

Commented:
where can I download it?

Author

Commented:
I found the download does this work on a per computer or users bases?
CoralonSenior Citrix Engineer

Commented:
These are all per-machine.  If you want to make per-user changes, you can do it, but this tool is a pure enable/disable tool.

There is a powershell library/module called Windows7Library that I have used in the past along with powershell scripts to modify the contents of the libaries.  This is awesomeness in a bucket ;-)
http://www.everythingpowershell.com/2011/06/updated-version-of-windows7library.html

Be sure to download the .5 version at least.. the default link is .2, but that version doesn't have much for the get-help.  The .5 has decent help and good examples :-)


Coralon

Author

Commented:
the wenpcfg doesn't seem to be removing the Favorites from the Windows Explorer view. It worked great on my Windows 7 workstation but not on my Windows 2008 R2 server

Author

Commented:
ALso what is the codes for this tool really doing in the background?

Author

Commented:
When I go into an application like offe I see Favorites and Documents listed and is true when I log into the desktop
CoralonSenior Citrix Engineer

Commented:
The tool just does the registry adds/removes automatically.

all of the /hidexxxx switches remove the keys and the /show adds them back in.    It should work just fine on your Win2k8 R2 servers.. (I've used it myself for this exact purpose).

It does not affect the Documents, that's controlled by a different set of keys.  I'm not sure how you would hide the Documents folder.

One important fact.. the keys affect Explorer and it's common dialogs.. it does NOT affect other programs that don't use the common dialogs.  There is just not a good way to modify those.

I know I put it on another post, but you can get the powershell module Windows7Library and use powershell scripts to modify the libraries.  I've done that several times to automatically add specific folders to libraries etc.

Coralon

Author

Commented:
I ran the tool to hide items but when I do the opposite to show them it does work. The items are still hidden. For example, Computer is missing from the Explorer Window
CoralonSenior Citrix Engineer

Commented:
Are you making sure you logging out of the system inbetween? (you technically just need to restart explorer.exe) but the safest way is a logout.

Coralon

Author

Commented:
YES...

The wenpcfg tool remove reference to Libraries but Favorites remains..

Author

Commented:
I found something interesting. If I manually edit the registry key to hide the Favorites and Libraries as mention in may articles when I reboot the vaule are reset.
CoralonSenior Citrix Engineer

Commented:
Interesting.. I have not been able to reproduce the behavior :-\  I know the tools all generally do the same thing - kill/add the registry keys.

I'll do more digging and see what I can come up with.. I hate that libraries 'feature'.. it makes admin life a nightmare! :-)

Coralon

Author

Commented:
I got the libraries to go away the problem is with Favorites

Author

Commented:
I ran a tool called whatchanged on my workstation after I ran the wenpcfg tool to hide the Libraries and favorites and the tool detect the follow registry key's changes and to which values..

HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{031E4825-7B94-4dc3-B131-E946B44C8DD5}\ShellFolder\Attributes=-1332739827
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{323CA680-C24D-4099-B94D-446DD2D7249E}\ShellFolder\Attributes=-1455423232
HKEY_CLASSES_ROOT\CLSID\{031E4825-7B94-4dc3-B131-E946B44C8DD5}\ShellFolder\Attributes=-1332739827
HKEY_CLASSES_ROOT\CLSID\{323CA680-C24D-4099-B94D-446DD2D7249E}\ShellFolder\Attributes=-1455423232
CoralonSenior Citrix Engineer

Commented:
Ok, the {031... key is the libraries key.  The {323... is the Favorites key.  However, killing the favorites can cause system problems, where the libraries key does not.  

Here's a great thread discussing it, and they mention wenpcfg also :-)

http://social.technet.microsoft.com/Forums/ar/w7itproui/thread/ac419c2b-4a38-44f0-b1f0-b0ed9fdcfdeb

Coralon

Author

Commented:
Ok, I was able to get the favorites and libraries removed from the Windows Explorer tree. BUT when I open and application like Word and go to File -> open The favorites and libraries are present!!!!!!!!!!!!!!!!!!!!!!!!!!!

This is driving me crazy!!!!!!!!!!!!!!!!!!
Senior Citrix Engineer
Commented:
Are the actual libraries there? or just the library root?  What version of word is it? I haven't tried this with all of them.. just the 2010 version.

If you want to do it the hardware, you can just delete the library files themselves and that will make the forcibly go away.. but it has to be done for each user (so a script naturally :-) as they get created with the profile).

The files are actually in %appdata%\microsoft\windows\libraries  (c:\users\%username%\appdata\roaming\microsoft\libraries).    I'm not sure where the Favorites are, since that is different than the IE Favorites.

Coralon

Author

Commented:
I'm using Office 2007

Author

Commented:
Any thoughts on this anyone....
CoralonSenior Citrix Engineer

Commented:
Just have to answer my questions :-)

Are the library files physically there?

Can you send a screenshot of what you are seeing?

Coralon