PowerShell: Update MasterPage setttings

PowerShell: Update MasterPage setttings

SPSite site = new SPSite(““http://dhraepoint);
SPWeb web = site.OpenWeb(“/subsite/site”);
web.AllProperties[“__InheritsCustomMasterUrl”] = “False”;
web.Update();

 

inclusief propertybag intherit custom masterpage vinkje