Show Hide a SharePoint 2013 List using PowerShell

InfoPath alternatives for form designing SharePoint

Recently my team got a requirement to hide a SharePoint 2013 list. Here we will discuss how we can show or hide a SharePoint 2013 list using PowerShell. User should not see the list in Site content as well as in Quick Launch.

You also read:
– Get Users who is not having My site from the User Profiles in SharePoint using PowerShell Script in SharePoint 2013

– Change Master Page using PowerShell in SharePoint 2013

– Delete SharePoint 2013 List and Library using PowerShell

Here I have a list name as “MyTestList99” which I want to hide from site content.

Below is the PowerShell script to hide a SharePoint List:
Open SharePoint Management Shell

Add-PSSnapin Microsoft.SharePoint.Powershell

$web = Get-SPWeb “http://win-pfcp2dgt8di/sites/EnjoySharePoint/”;

$list = $web.Lists[“MyTestList99”];

$list.Hidden = 1; //hiding the list in Site Contents

$list.OnQuickLaunch = $false; // hiding the list in Quick Launch


Below is the PowerShell script to Show a SharePoint List:

Add-PSSnapin Microsoft.SharePoint.Powershell

$web = Get-SPWeb “http://win-pfcp2dgt8di/sites/EnjoySharePoint/”;

$list = $web.Lists[“MyTestList99”];

$list.Hidden = 0; //showing the list in Site Contents

$list.OnQuickLaunch = $true; // showing the list in Quick Launch


Hope this will be helpful.

Similar SharePoint 2013 Tutorials

About Bijay Kumar

I am Bijay from Odisha, India. Currently working in my own venture TSInfo Technologies in Bangalore, India. I am Microsoft Office Servers and Services (SharePoint) MVP (5 times). I works in SharePoint 2016/2013/2010, SharePoint Online Office 365 etc. Check out My MVP Profile.. I also run popular SharePoint web site

View all posts by Bijay Kumar →

Leave a Reply