Sometime we have few list or libraries where we add some configuration information and do not want user to directly access. Today I am going to share the powershell script which you can use to Show or Hide SharePoint list and libraries. In attached zip file I have added two separate files for SharePoint Online and SharePonit on-premise

Both files contain a simple function ShowHideList which require three parameters.


#site URL, List/Library name, $true/$false  
ShowHideList "" "Opportunities" $false