Table of contents
TOC
Collapse the table of content
Expand the table of content

Add-PnPWikiPage

Bert Jansen|Last Updated: 2/20/2017
|
1 Contributor

Adds a wiki page

Syntax

Add-PnPWikiPage -Content <String>
                -ServerRelativePageUrl <String>
                [-Web <WebPipeBind>]
Add-PnPWikiPage -Layout <WikiPageLayout>
                -ServerRelativePageUrl <String>
                [-Web <WebPipeBind>]

Parameters

ParameterTypeRequiredDescription
ContentStringTrue
LayoutWikiPageLayoutTrue
ServerRelativePageUrlStringTrueThe server relative page URL
WebWebPipeBindFalseThe web to apply the command to. Omit this parameter to use the current web.

Examples

Example 1

PS:> 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'

© 2017 Microsoft