Forum Discussion
SharePoint Online search all pages
Hello together,
I want to set up my SharePoint Online site so that the search will search all SharePoint sites and not just "this site".
Can anyone help me here?
Thank you very much and kind regards
Silas Muth
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
2 Replies
- MarekSkalinskiCopper Contributor
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- Silas_MuthBrass Contributor
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