Forum Discussion

María José Pedreira's avatar
María José Pedreira
Brass Contributor
May 29, 2017
Solved

Allow or avoid items from lists appear in search results with New-PnPList

I have created a Picture Library and I need configure it with value NO for search option.

 

 

How do I have to use the search property in the New-PnPLIst command?

 

New-PnPList -Title "MyImages" -Url "MyImages" -Template "PictureLibrary"

 

Thank you!

  • If you want to do with PnP, below sample might be helpful to you.

    $cdx=Get-PnPContext
    $group=Get-PnPList -Identity MyImages
    $group.NoCrawl =$True
    $group.Update()
    $cdx.ExecuteQuery()

Resources