Sunday, November 15, 2015

PowerShell script to make a list hidden in SharePoint

Good Evening Friends !!

I just want to share a small script which makes your list hidden from any user. After run this script you can not see the list in All Site Content page.


 $web = Get-SpWeb "http://itmohit"

 $list = $web.Lists["Tasks"]

 $list.Hidden = $true

 $list.update()

 $web.dispose()



---
Mohit

2 comments: