How to set SharePoint View Hidden using Powershell in SharePoint 2010,2013, 2016 and Office 365?

Hello SharePointers,

Below are the powershell script to set the SharePoint list as hidden in  SharePoint 2010,2013, 2016 and Office 365

$spWeb = Get-SPWeb “http://sp/mysites/empeng”
$spList = $spWeb.Lists[“Vendors”]
$spView = $spList.Views[“Enquiry”]
$spView.Hidden=$true
$spView.Update()

Happy SharePointing Folks!!

Leave a Reply

Your email address will not be published.