I am attempting to use PowerShell to change the the seach scope which is by default "All Sites" to "All Content". I have tried
$sitecontext = get-SpServiceContext $siteUrl $mgr = new-object Microsoft.Office.Server.Search.Administration.RemoteScopes($sitecontext) $scope = $mgr.GetSharedScope("All Sites") $scope.name = "All Content" $scope.update() $mgr.update() //unnessacery? $mgr.StartCompilation()
When i go to the site > site settings > search scopes it shows that the scope has been renamed but value actually displayed in the search dropdown remains unchanged.
Search dropdown mode = "Show, do not include contextual scopes, and default to 's' url parameter"
What am i missing?