Skip to content

Latest commit

 

History

History
106 lines (77 loc) · 2.03 KB

Add-PnPWikiPage.md

File metadata and controls

106 lines (77 loc) · 2.03 KB
Module Name schema applicable online version external help file title
PnP.PowerShell
2.0.0
SharePoint Online
PnP.PowerShell.dll-Help.xml
Add-PnPWikiPage

Add-PnPWikiPage

SYNOPSIS

Adds a wiki page

SYNTAX

WithContent

Add-PnPWikiPage -ServerRelativePageUrl <String> -Content <String> 
 [-Connection <PnPConnection>] 

WithLayout

Add-PnPWikiPage -ServerRelativePageUrl <String> -Layout <WikiPageLayout> 
 [-Connection <PnPConnection>] 

DESCRIPTION

Allows to add a wiki page.

EXAMPLES

EXAMPLE 1

Add-PnPWikiPage -PageUrl '/sites/demo1/pages/wikipage.aspx' -Content 'New WikiPage'

Creates a new wiki page '/sites/demo1/pages/wikipage.aspx' and sets the content to 'New WikiPage'

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

-Content

Type: String
Parameter Sets: WithContent

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Layout

Type: WikiPageLayout
Parameter Sets: WithLayout
Accepted values: OneColumn, OneColumnSideBar, TwoColumns, TwoColumnsHeader, TwoColumnsHeaderFooter, ThreeColumns, ThreeColumnsHeader, ThreeColumnsHeaderFooter, Custom

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-ServerRelativePageUrl

The server relative page URL

Type: String
Parameter Sets: (All)
Aliases: PageUrl

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

RELATED LINKS

Microsoft 365 Patterns and Practices