Advertisement
In some cases if we want to enable "Global Search Center URL" as enterprise search center site URL in our entire SharePoint farm.
Instead of enable this through GUI,we can easily achieve this user power shell.
First we have to get the Search Service Application in to a variable
Using "Get-SPEnterpriseSearchServiceApplication".
Using the "SearchCenterUrl" set the enterprise URL and update it as per the requirement.
Run the below Power Shell Command.
$sa = Get-SPEnterpriseSearchServiceApplication
$sa.SearchCenterUrl = "http://sitename/SearchCenter/Pages"
$sa.Update()
Once the Power Shell runs completed successfully,check the search is affected in our environment or not,even through its not affected some times we have to do IISRest.
Instead of enable this through GUI,we can easily achieve this user power shell.
First we have to get the Search Service Application in to a variable
Using "Get-SPEnterpriseSearchServiceApplication".
Using the "SearchCenterUrl" set the enterprise URL and update it as per the requirement.
Run the below Power Shell Command.
$sa = Get-SPEnterpriseSearchServiceApplication
$sa.SearchCenterUrl = "http://sitename/SearchCenter/Pages"
$sa.Update()
Once the Power Shell runs completed successfully,check the search is affected in our environment or not,even through its not affected some times we have to do IISRest.
0 comments:
Post a Comment