home page i want to put the name of the owner next to Home. PS script

%3CLINGO-SUB%20id%3D%22lingo-sub-800265%22%20slang%3D%22en-US%22%3Ehome%20page%20i%20want%20to%20put%20the%20name%20of%20the%20owner%20next%20to%20Home.%20PS%20script%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-800265%22%20slang%3D%22en-US%22%3E%3CP%3EI%20am%20creating%20a%20site%20without%20O365%20group%20using%20the%20below%20power%20shell%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENew-PnPTenantSite%20-Url%20%24url%20-Title%20%24title%20-Template%20STS%233%20-Owner%20%24owner%20-StorageQuota%2010240%20-TimeZone%202%20-Wait%3C%2FP%3E%3CP%3Eand%20editing%20the%20home%20page%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAdd-PnPClientSidePageSection%20-Page%20Home%20-SectionTemplate%20OneColumn%20-Order%202%3CBR%20%2F%3EAdd-PnPClientSidePageSection%20-Page%20Home%20-SectionTemplate%20TwoColumn%20-Order%203%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAdd-PnPClientSideWebPart%20-Page%20Home%20-DefaultWebPartType%20%22SiteActivity%22%20-Section%202%20-Column%201%3CBR%20%2F%3EAdd-PnPClientSideWebPart%20-Page%20Home%20-DefaultWebPartType%20%22List%22%20-Section%202%20-Column%202%20-WebPartProperties%20%40%7BisDocumentLibrary%3D%22true%22%3BselectedListId%3D%24LibID%7D%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOn%20he%20home%20page%20i%20want%20to%20put%20the%20name%20of%20the%20owner%20next%20to%20Home.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHow%20do%20i%20do%20this%20in%20powershell%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-800265%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-804100%22%20slang%3D%22en-US%22%3ERe%3A%20home%20page%20i%20want%20to%20put%20the%20name%20of%20the%20owner%20next%20to%20Home.%20PS%20script%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-804100%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F52384%22%20target%3D%22_blank%22%3E%40null%20null%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CUL%3E%3CLI%3ECreate%20a%20new%20variable%20%24ownerName%3C%2FLI%3E%3CLI%3E%3CSPAN%3EAdd-PnPClientSideText%20-Page%20Home%20-Text%20%24ownerName%20-Section%20X%20-Column%20Y%3C%2FSPAN%3E%3C%2FLI%3E%3C%2FUL%3E%3C%2FLINGO-BODY%3E
Highlighted
Regular Contributor

I am creating a site without O365 group using the below power shell

 

New-PnPTenantSite -Url $url -Title $title -Template STS#3 -Owner $owner -StorageQuota 10240 -TimeZone 2 -Wait

and editing the home page 

 

Add-PnPClientSidePageSection -Page Home -SectionTemplate OneColumn -Order 2
Add-PnPClientSidePageSection -Page Home -SectionTemplate TwoColumn -Order 3

 

 

Add-PnPClientSideWebPart -Page Home -DefaultWebPartType "SiteActivity" -Section 2 -Column 1
Add-PnPClientSideWebPart -Page Home -DefaultWebPartType "List" -Section 2 -Column 2 -WebPartProperties @{isDocumentLibrary="true";selectedListId=$LibID}

 

 

On he home page i want to put the name of the owner next to Home.

 

How do i do this in powershell

 

 

1 Reply
Highlighted

@null null 

 

  • Create a new variable $ownerName
  • Add-PnPClientSideText -Page Home -Text $ownerName -Section X -Column Y