Tuesday, December 22, 2015

Re-provision SharePoint Service Applications Powershell

# Re-provisions all the SharePoint Web Services (Resolves STS errors)

$h = Get-SPServiceHostconfig

$h.Provision()

$services = Get-SPServiceApplication

foreach ($service in $services) { $service.provision();
write-host $service.name}

No comments:

Post a Comment