If you go to "Site Settings" of any site you will see option "Search and offline availability". Clicking on which will open a page where you can chose one of the following option for "Index ASPX Page Content"

  • Do not index Web Parts if this site contains fine-grained permissions
  • Always index all Web Parts on this site
  • Never index any Web Parts on this site

By default first value is checked.

Is it possible to change this value to "Always index all Web Parts on this site" through powershell for all sites because I have more than 500 sub sites?

enter image description here

1 Answer 1


try the below code and tweak it as per your requirement.

$site=Get-SPSite "http://servername:1111/"

More detail at this site

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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