external help file | applicable | schema |
---|---|---|
SharePoint Online |
2.0.0 |
Creates a new Site Design on the current tenant.
Add-PnPSiteDesign -Title <String>
-SiteScriptIds <GuidPipeBind[]>
-WebTemplate <SiteWebTemplate>
[-Description <String>]
[-IsDefault [<SwitchParameter>]]
[-PreviewImageAltText <String>]
[-PreviewImageUrl <String>]
[-Connection <SPOnlineConnection>]
PS:> Add-PnPSiteDesign -Title "My Company Design" -SiteScriptIds "e84dcb46-3ab9-4456-a136-66fc6ae3d3c5","6def687f-0e08-4f1e-999c-791f3af9a600" -Description "My description" -WebTemplate TeamSite
Adds a new Site Design, with the specified title and description. When applied it will run the scripts as referenced by the IDs. Use Get-PnPSiteScript to receive Site Scripts. The WebTemplate parameter specifies that this design applies to Team Sites.
The description of the site design
Type: String
Parameter Sets: (All)
Required: False
Position: Named
Accept pipeline input: False
Specifies if the site design is a default site design
Type: SwitchParameter
Parameter Sets: (All)
Required: False
Position: Named
Accept pipeline input: False
Sets the text for the preview image
Type: String
Parameter Sets: (All)
Required: False
Position: Named
Accept pipeline input: False
Sets the url to the preview image
Type: String
Parameter Sets: (All)
Required: False
Position: Named
Accept pipeline input: False
An array of guids of site scripts
Type: GuidPipeBind[]
Parameter Sets: (All)
Required: True
Position: Named
Accept pipeline input: False
The title of the site design
Type: String
Parameter Sets: (All)
Required: True
Position: Named
Accept pipeline input: False
Specifies the type of site to which this design applies
Type: SiteWebTemplate
Parameter Sets: (All)
Required: True
Position: Named
Accept pipeline input: False
Optional connection to be used by cmdlet. Retrieve the value for this parameter by eiter specifying -ReturnConnection on Connect-PnPOnline or by executing Get-PnPConnection.
Type: SPOnlineConnection
Parameter Sets: (All)
Required: False
Position: Named
Accept pipeline input: False