0

I realize I can do this at the site or site collection level (can't remember which). However, I need every one turned off individually so that I can then go back and choose which libraries/lists are searchable. Since I have a ton of lists and libraries, and most I do not want to appear in search results, it would be arduous to do this on a one-by-one basis. Bad planning, I know......

1 Answer 1

3

try

 $site = Get-SPSite http://siteColl    
    $site | Get-SPWeb -Limit ALL | ForEach-Object {   
        foreach ($list in $_.lists) 
        {                  
                    $list.NoCrawl = $true
                    $list.Update()
        }
    }

    $site.Dispose()
0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.