Hide a list in SharePoint 2010


Niklas Goude
-Expert in Residence

You can use Windows PowerShell to hide a list in SharePoint 2010. Simply store an instance of an SPList Object, set the Hidden property to $true and update the SPList object.

PS > $spWeb = Get-SPWeb http://sp01/site
PS > $spList = $spWeb.GetList("http://sp01/site/Lists/MyList")
PS > $spList.Hidden = $true
PS > $spList.Update()

 

Twitter This Tip! ReTweet this Tip!


Posted Apr 28 2011, 08:00 AM by sos
Idera SharePoint Reviews SMBology, Inc. Rackspace Hosting Sponsored by Idera and SharePoint Reviews and SMBology and EPCGroup.net
Copyright 2011 SecretsOfSharePoint.com. All rights reserved.