SOLVED
Home

Is there a PowerShell command to create a Static Page that goes inside \Site Pages\ library ?

%3CLINGO-SUB%20id%3D%22lingo-sub-138430%22%20slang%3D%22en-US%22%3EIs%20there%20a%20PowerShell%20command%20to%20create%20a%20Static%20Page%20that%20goes%20inside%20%5CSite%20Pages%5C%20library%20%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-138430%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3CBR%20%2F%3EI%20need%20to%20create%20few%20Static%20Pages%20i.e.%20the%20pages%20that%20goes%20inside%20the%20%5CSite%20Pages%5C%20library%2C%20Is%20there%20a%20PowerShell%20command%20to%20do%20it%20%3F%3C%2FP%3E%0A%3CP%3EI%20have%20come%20across%20following%20two%20commands%20but%20not%20for%20the%20Static%20Page.%3CBR%20%2F%3EAdd-PnPPublishingPage%3CBR%20%2F%3EAdd-PnPWikiPage%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAny%20help%20would%20be%20much%20appreciated%2C%20thank%20you.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-138430%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EPowerShell%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-138521%22%20slang%3D%22en-US%22%3ERe%3A%20Is%20there%20a%20PowerShell%20command%20to%20create%20a%20Static%20Page%20that%20goes%20inside%20%5CSite%20Pages%5C%20library%20%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-138521%22%20slang%3D%22en-US%22%3Ethank%20you%20Manidurai%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-138449%22%20slang%3D%22en-US%22%3ERe%3A%20Is%20there%20a%20PowerShell%20command%20to%20create%20a%20Static%20Page%20that%20goes%20inside%20%5CSite%20Pages%5C%20library%20%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-138449%22%20slang%3D%22en-US%22%3E%3CP%3Eyou%20can%20create%26nbsp%3Bsite%20page%20using%20Add-PnPClientSidePage%20command%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional Contributor

Hi,
I need to create few Static Pages i.e. the pages that goes inside the \Site Pages\ library, Is there a PowerShell command to do it ?

I have come across following two commands but not for the Static Page.
Add-PnPPublishingPage
Add-PnPWikiPage

 

Any help would be much appreciated, thank you.

2 Replies
Highlighted
Solution

you can create site page using Add-PnPClientSidePage command