OK, so this is what the search box looks out of the box:
Now let’s change it to something we want, like: “Search the PBNET Search Test Site”
Here’s how to do it:
|
1 2 |
Connect-PnPOnline -Url "https://tenant.sharepoint.com/sites/SearchTest1" -Interactive Set-PnPSearchSettings -Scope Web -SearchBoxPlaceholderText "Search the PBNET Search Test Site" |
and the results:
To get back to the original values, just use the following script:
|
1 2 |
Connect-PnPOnline -Url "https://tenant.sharepoint.com/sites/SearchTest1" -Interactive Set-PnPSearchSettings -Scope Web -SearchBoxPlaceholderText "" |
Enjoy!


