Enable-SPWebTemplateForSiteMaster

Erstellt eine Vorlage für eine Website-Masterseite.

Syntax

Enable-SPWebTemplateForSiteMaster
      [-AssignmentCollection <SPAssignmentCollection>]
      [-CompatibilityLevel <Int32>]
      -Template <SPWebTemplatePipeBind>
      [<CommonParameters>]

Beschreibung

Verwenden Sie das Enable-SPWebTemplateEnabledForSiteMaster-Cmdlet, um eine Website-Masterseite in der Datenbank zu erstellen.

Beispiele

------------Example 1 -----------

Enable-SPWebTemplateForSiteMaster -Template STS#0 -CompatibilityLevel 15

In diesem Beispiel wird mithilfe der Vorlage "Teamwebsite" ein Websitemaster in der Datenbank erstellt.

Parameter

-AssignmentCollection

Manages objects for the purpose of proper disposal. Use of objects, such as SPWeb or SPSite, can use large amounts of memory and use of these objects in Windows PowerShell scripts requires proper memory management. Using the SPAssignment object, you can assign objects to a variable and dispose of the objects after they are needed to free up memory. When SPWeb, SPSite, or SPSiteAdministration objects are used, the objects are automatically disposed of if an assignment collection or the Global parameter is not used.

When the Global parameter is used, all objects are contained in the global store. If objects are not immediately used, or disposed of by using the Stop-SPAssignment command, an out-of-memory scenario can occur.

Type:SPAssignmentCollection
Position:Named
Default value:None
Accept pipeline input:True
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-CompatibilityLevel

Specifies the version of templates to use when creating a new SPSite object. This value sets the initial CompatibilityLevel value for the site collection.

Wird der Parameter nicht angegeben, ist der CompatibilityLevel-Parameter automatisch die höchstmögliche Version für die Webanwendung, je nach der Einstellung für „SiteCreationMode“.

Type:Int32
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-Vorlage

Gibt den Namen der Vorlage an. Beispiel: SPSPERS#2.

Type:SPWebTemplatePipeBind
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

Eingaben

Microsoft.SharePoint.PowerShell.SPAssignmentCollection

Ausgaben

System.Object