SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to set New Page Default Settings to "Inherit default page layout from parent site" in sharepoint 2013 subsites using powershell script. I have tried with publishing-web IsInheritingDefaultPageLayout property but it is read-only property.This can be done manually via SharePoint GUI (Site Settings / Look and Feel / Page Layouts and site templates) but i want to do this settings using powershell script.Is there any solution?

share|improve this question

Done with below code.

Use InheritDefaultPageLayout method instead of IsInheritingDefaultPageLayout property.

$pweb = [Microsoft.SharePoint.Publishing.PublishingWeb]::GetPublishingWeb($subsite)
share|improve this answer

Your Answer


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.