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

Iron 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

@null null 

 

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