GPO disable Public Library

dkSoftware used Ask the Experts™
I am setting up a terminal server farm and am having a little problem locating a setting to disable the use of public libraries
 Library propertiesThe users who logon to the server are from different companies and could not be able to access the "public library"
Does anyone have recommendations for me and can guide me in the right direction?
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Adam BrownSenior Systems Admin
Top Expert 2010

Probably your best bet is to turn libraries off entirely. I've attached code for a registry modification that should do that for you. There isn't a default group policy method for doing this, but you can use Group Policy Preferences to remove these keys as well if you want to.
Windows Registry Editor Version 5.00


Open in new window


I will test this and see how it works.
I did not get around to test your solution because i stumbled on to something that works like a charm and solves almost all library problems.
I create i logon powershell script that removes the public documents from the user document library and it works like a charm.

this is a small code example from my login script removePublicDoc.ps1
Import-Module "\\mydomain.local\SYSVOL\mydomain.local\scripts\Powershell\Windows7Library\Windows7Library.psm1"
Remove-LibraryFolder -LibraryPath (Get-KnownFolder "DocumentsLibrary").path -FolderPath "C:\users\Public\Documents"


This powershell module help manipulate all of the library option in windows vista +

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial