用于为特定SharePoint站点启用现代页面创建的脚本。 [英] Script to enable modern page creation for the specific SharePoint site.

查看:61
本文介绍了用于为特定SharePoint站点启用现代页面创建的脚本。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在运行以下脚本,以便为特定的sharepoint站点启用现代页面创建,但收到错误。

I am running the below script to enable the modern page creation for the specific sharepoint site but getting an error.

参考 -   https://support.office .com / zh-CN / article / let-users-create-modern-site-pages-c41d9cc8-c5c0-46b4-8b87-ea66abc6e63b 

Reference - https://support.office.com/en-us/article/let-users-create-modern-site-pages-c41d9cc8-c5c0-46b4-8b87-ea66abc6e63b 

代码 -

#Load SharePoint Online Client组件SDK模块

错误 -

任何帮助都将不胜感激!!!谢谢!

Any help would be greatly appreciated!!!THANKS!!

推荐答案

发生错误是因为找不到网页,web.Features无效。

如果您有一个网站,例如"https://contoso.sharepoint.com/sites/marketing/northwindcompete"。

对于WebUrl,您应该输入"/ sites / marketing / northwindcompete",而不是"sites / marketing / northwindcompete"喜欢

文章


siteUrl =" https://contoso.sharepoint.com/sites/marketing"
siteUrl = "https://contoso.sharepoint.com/sites/marketing"


webUrl =" / sites / marketing / northwindcompete"
webUrl = "/sites/marketing/northwindcompete"





如果您有一个根网站,例如"https://contoso.sharepoint.com/sites/marketing"。

对于SiteUrl,您应输入:"https://contoso.sharepoint.com/sites/marketing",对于WebUrl,您应该将其留空。


这篇关于用于为特定SharePoint站点启用现代页面创建的脚本。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆