One or more services have started or stopped unexpectedly
Applies to SharePoint 2016; not tested on other versions of SharePoint.
Symptoms
Central Admin's Health Analyzer shows:
- Title: One or more services have started or stropped unexpectedly.
- Explanation: The following services are managed by SharePoint, but their running state does not match what SharePoint expects: c2wts
- Remedy: To stop or start a service managed by SharePoint, use the SharePoint service management interface in the SharePoint Central Administration Site. If a service has crashed, restart the service manually on the affected servers by running “net start [service name]” from a command prompt.
Service status shows c2wts (Claims to Windows Token Service) is not running even though it’s set to “Startup type: Automatic”. When you try to start the service, it gives:
Windows could not start the c2wts service on local Computer. Error 2: The system cannot find the file specified.
Search servers have the startup type of the service set to Disabled by design. Hence, they are not listed in the Health Analyzer item.
Cause
Unknown. However, it occurred after Windows patching.
Resolution
Check the value of ImagePath registry item at HKLM\SYSTEM\CurrentControlSet\Services\c2wts. If it’s not set to “C:\Program Files\Windows Identity Foundation\v3.5\c2wtshost.exe" including the double quotes, change it to that value:
Reboot is not required.