SharePoint Sites Templates – from the battlefield
# Install Required Modules Install-Module PnP.PowerShell -RequiredVersion 1.12.0 -Force Install-Module PnP.PowerShell # Register AppID Register-PnPEntraIDAppForInteractiveLogin -ApplicationName “PnP PowerShell” -SharePointDelegatePermissions “AllSites.FullControl” -Tenant xxx.onmicrosoft.com # Connect to the SharePoint Online $adminSiteUrl = “https://xxx-admin.sharepoint.com/” $siteUrl = “https://xxx.sharepoint.com/sites/Test01” Connect-PnPOnline $adminSiteUrl -Interactive -ClientId xxx # Test connection (display all SharePoint Online Sites) Get-PnPTenantSite # Get the json template […]