This script will disable all list and libraries from search result in the site collection.
1 2 3 4 5 6 7 8 9 10 |
Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue $site = Get-SPSite http://spapplication $site | Get-SPWeb -Limit ALL | ForEach-Object { foreach ($list in $_.lists) { $list.NoCrawl = $true $list.Update() } } $site.Dispose() |
You can disable it from list/library’s advanced settings. If numerous lists then the script will make it easier.