Forum Discussion
SharePoint Online search all pages
- Nov 09, 2020
I have found exactly one PowerShell command that fixes this problem.
#Set Parameters
$SiteURL = "https://crescent.sharepoint.com/sites/Marketing"
#Connect to SharePoint Online site
Connect-PnPOnline -Url $SiteURL -UseWebLogin
#change default search scope
Set-PnPSearchSettings -SearchScope Tenant
Silas_Muth By default you can use search which is located under https://yourtenant.sharepoint.com/_layouts/15/sharepoint.aspx
also you can connect sites under the hub site and the search trough of them
The third way is to build search page under one site collection and use PNP Modern Search solution
https://github.com/microsoft-search/pnp-modern-search
I have found exactly one PowerShell command that fixes this problem.
#Set Parameters
$SiteURL = "https://crescent.sharepoint.com/sites/Marketing"
#Connect to SharePoint Online site
Connect-PnPOnline -Url $SiteURL -UseWebLogin
#change default search scope
Set-PnPSearchSettings -SearchScope Tenant