Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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......

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

try

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

    $site.Dispose()
share|improve this answer
    
That worked! Thanks, that saved me TONS of time! –  CeeMoney May 23 '12 at 12:28
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.