Вопрос

Patching script. From this script, there is a command Install-SPPatch -Path C:\Updates -Pause -KeepSearchPaused:$true -SilentInstall

We can run this command, we can keep the search in the paused state until patch installation is completed on all servers, but how to start the search services once all the patches are installed in all servers in the farm?

Это было полезно?

Решение

The script has the cmdlets to do that, but this is what you would do:

    $ssas = Get-SPEnterpriseSearchServiceApplication

    foreach ($ssa in $ssas) {
        Write-Host -ForegroundColor Yellow "Resuming the Search Service Application: $($ssa.DisplayName)"
        Write-Host -ForegroundColor Yellow '    This could take a few minutes...'
        Resume-SPEnterpriseSearchServiceApplication -Identity $ssa | Out-Null
    }
Лицензировано под: CC-BY-SA с атрибуция
Не связан с sharepoint.stackexchange
scroll top