Forum Discussion

irshad313's avatar
irshad313
Copper Contributor
Feb 07, 2024
Solved

Publishing a page template

I created a page template in one of the site and distributed that page template to all the active communication sites through powershell [as a page template]. but the issue is minor version of a temp...
  • irshad313's avatar
    Feb 09, 2024
    Thanks for replies, I have achieved my objective with this scripts
    $sites = Get-PnPTenantSite -Template SITEPAGEPUBLISHING#0
    foreach($site in $sites)
    {
    Connect-PnPOnline -Url $site.Url -Interactive
    Set-PnPPage -Identity “Templates/Page-From-TemplateTest.aspx” -Publish
    }

Resources