在SharePoint 项目中使用自定义母版页,在部署或者发布项目版本的时候需要设置母版页,使用该脚本可以进行初始化设置。

$site = get-spsite(http://server);

$web = $site.RootWeb;

$web.Files[0].delete();

$web.CustomerMasterUrl = "/_catalogs/masterpage/custom.master";

$web.update();

 

 

 

相关文章:

  • 2021-10-01
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-23
猜你喜欢
  • 2022-02-13
  • 2022-12-23
  • 2022-12-23
  • 2021-08-11
  • 2021-04-18
  • 2022-12-23
相关资源
相似解决方案