SharePoint Site Design - Clone a site and Auto provision using Site Scripts

preview_player
Показать описание
This video explains the step by step process of extracting Site Script from existing SharePoint site and Provision a new site using SPO design.

Sample commands are shared in Comment box.
Рекомендации по теме
Комментарии
Автор

Below is the sample PowerShell commands:
$relativeListUrls = "/lists/Project Tracking", "/lists/Issue tracking", "/lists/Announcements"
Connect-SPOService $adminSiteUrl

//extract the site script
$extracted = Get-SPOSiteScriptFromWeb –WebUrl $siteUrl -IncludeTheme -IncludeBranding –IncludeRegionalSettings -IncludeLinksToExportedItems –IncludedLists $relativeListUrls

Add-SPOSiteScript -Title "My Custom template " `
-Description "This is a copy of a site collection." `
-Content $extracted
Add-SPOSiteDesign -Title "Custom Template" -WebTemplate "64" -SiteScripts "<ID>" -Description "Applying Team site"

mtechhelp
Автор

This video has been of great help to me. It helps me solve an important problem with several clients. It is the best and most complete tutorial I have found. Thanks.

Автор

But this template is available in all site collections do we have any option to create template at site collection level instead on tenant level

sunny
Автор

Hi, need some help with approval workflow.

sanwalPardeep
Автор

This is excellent. Thank you! One question i have is how do we differentiate between a list and a library please?

pmd
Автор

it does not move the library content pics, used to customize the site. how to include the folder content in PowerShell

HammadJagirdar
Автор

Thank you very much sir, how do we then go about deleting the design once created?

anelenoroita
Автор

Can this design will have it's own template I'd for further automation?

ShagunTalkies
Автор

Thanks again, but I see this method excludes other custom webparts and existing text content. Is there a way to extract that info as well?

anelenoroita
Автор

Thanks! I would like to use this but I don't see the script in the comments

jalbers
Автор

Very nice video! Thanks!

It would be interesting to also see how this is done with REST. And btw does REST also extract Layout and Web Part info? Because I noticed that Site Design doesn't :/

Yet again, thanks for a great guide.
//A

twangt