To install PnP PowerShell:
Install-Module -Name PnP.PowerShell
To UNInstall PnP PowerShell:
UNInstall-Module SharePointPnPPowerShellOnline
连接:
Connect-PnPOnline -url https://dynamicschina.sharepoint.com/sites/DemoCollection -PnPManagementShell
导出:
Get-PnPSiteTemplate -Out E:\myfile1.xml
导入:
Invoke-PnPSiteTemplate -Path E:\PnpSharepointXml\sonova.xml
参考PnP工具文档链接:
github:
PnP PowerShell | PnP PowerShell
其他:
The PnP Office Open XML File format | Microsoft Learn
Invoke-PnPSiteTemplate | PnP PowerShell
How to export xml scripts from SharePoint Online with PnP PowerShell - DEV Community 👩💻👨💻