Add-PnPMasterPage
SYNOPSIS
Adds a Masterpage
SYNTAX
Add-PnPMasterPage -SourceFilePath <String> -Title <String> -Description <String>
[-DestinationFolderHierarchy <String>] [-UIVersion <String>] [-DefaultCssFile <String>]
[-Connection <PnPConnection>]
DESCRIPTION
Allows to add MasterPage.
EXAMPLES
EXAMPLE 1
Add-PnPMasterPage -SourceFilePath "page.master" -Title "MasterPage" -Description "MasterPage for Web" -DestinationFolderHierarchy "SubFolder"
Adds a MasterPage from the local file "page.master" to the folder "SubFolder" in the MasterPage gallery.
PARAMETERS
-Connection
Optional connection to be used by the cmdlet. Retrieve the value for this parameter by either specifying -ReturnConnection on Connect-PnPOnline or by executing Get-PnPConnection.
Type: PnPConnection
Parameter Sets: (All)
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-DefaultCssFile
Default CSS file for the MasterPage, this Url is SiteRelative
Type: String
Parameter Sets: (All)
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Description
Description for the MasterPage
Type: String
Parameter Sets: (All)
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-DestinationFolderHierarchy
Folder hierarchy where the MasterPage will be deployed
Type: String
Parameter Sets: (All)
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-SourceFilePath
Path to the file which will be uploaded
Type: String
Parameter Sets: (All)
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Title
Title for the MasterPage
Type: String
Parameter Sets: (All)
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-UIVersion
UIVersion of the MasterPage. Default = 15
Type: String
Parameter Sets: (All)
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False