使用pnp PowerShell创建现代团队网站 [英] Creating Modern Team sites using pnp PowerShell
问题描述
据我所知,在Modern Team网站中,我们无法将网站另存为模板。
I understand in Modern Team sites we cannot save the site as a template.
1。我们如何创建模板。
1. How do we create a Template.
2。如何编写PNP Power Shell脚本,该脚本将使用我创建的模板创建现代站点。
2. How do I write a PNP Power Shell script that will create a Modern Site with a template that I created.
我们正在使用SharePoint Online。
We are using SharePoint Online.
非常感谢!
Mayank
推荐答案
您好,
我们可以使用PnP PowerShell配置引擎保存现代网站模板:
We could save modern site template with PnP PowerShell provisioning engine:
使用PnP配置引擎创建包含多个页面的现代SharePoint网站模板
然后创建新网站使用Apply-PnpProvisioningTemplate创建模板:
And then create the new site with created template with Apply-PnpProvisioningTemplate:
PnP Provisioning Engine和PnP PowerShell入门
谢谢
最好的问候
这篇关于使用pnp PowerShell创建现代团队网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!