Changing the Search scope in SharePoint

When a customer with tons of sites needs to change the search scope, there are several ways to approach this. One solution is to create a PnP PowerShell script. In this example we’ll change the search scope to tenant (Organization). Steps to success: Drink some coffee and enjoy your new search scope.