Skip to content

Latest commit

 

History

History
141 lines (99 loc) · 2.65 KB

Get-PnPProvisioningTemplateFromGallery.md

File metadata and controls

141 lines (99 loc) · 2.65 KB
external help file applicable schema
SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
2.0.0

Get-PnPProvisioningTemplateFromGallery

SYNOPSIS

Retrieves or searches provisioning templates from the PnP Template Gallery

SYNTAX

Identity

Get-PnPProvisioningTemplateFromGallery [-Identity <Guid>]
                                       [-Path <String>]
                                       [-Force [<SwitchParameter>]]

Search

Get-PnPProvisioningTemplateFromGallery [-Search <String>]
                                       [-TargetPlatform <TargetPlatform>]
                                       [-TargetScope <TargetScope>]

EXAMPLES

------------------EXAMPLE 1------------------

Get-PnPProvisioningTemplateFromGallery

Retrieves all templates from the gallery

------------------EXAMPLE 2------------------

Get-PnPProvisioningTemplateFromGallery -Search "Data"

Searches for a templates containing the word 'Data' in the Display Name

------------------EXAMPLE 3------------------

Get-PnPProvisioningTemplateFromGallery -Identity ae925674-8aa6-438b-acd0-d2699a022edd

Retrieves a template with the specified ID

------------------EXAMPLE 4------------------

$template = Get-PnPProvisioningTemplateFromGallery -Identity ae925674-8aa6-438b-acd0-d2699a022edd
Apply-PnPProvisioningTemplate -InputInstance $template

Retrieves a template with the specified ID and applies it to the site.

------------------EXAMPLE 5------------------

$template = Get-PnPProvisioningTemplateFromGallery -Identity ae925674-8aa6-438b-acd0-d2699a022edd -Path c:\temp

Retrieves a template with the specified ID and saves the template to the specified path

PARAMETERS

-Force

Type: SwitchParameter
Parameter Sets: Identity

Required: False
Position: Named
Accept pipeline input: False

-Identity

Type: Guid
Parameter Sets: Identity

Required: False
Position: Named
Accept pipeline input: False

-Path

Type: String
Parameter Sets: Identity

Required: False
Position: Named
Accept pipeline input: False

-Search

Type: String
Parameter Sets: Search

Required: False
Position: Named
Accept pipeline input: False

-TargetPlatform

Type: TargetPlatform
Parameter Sets: Search

Required: False
Position: Named
Accept pipeline input: False

-TargetScope

Type: TargetScope
Parameter Sets: Search

Required: False
Position: Named
Accept pipeline input: False

RELATED LINKS

SharePoint Developer Patterns and Practices