Sharepoint server search service stuck in stopping state when you tried to restart the service sharepoint server search. Sharepoint search returns correlation id error for whcih you decided to restart the search service.
You need to connect server to existing farm in sharepoint. If due to some issue, you disconnected web front-end server from sharepoint farm. After issue resolution, you need to connect web front-end server back to exisiting server farm again.
Every infracture admin need to know the steps to force stop or kill windows service stuck at stopping by pid using taskkill or powershell. Think about a situation, you are trying to stop a windows service but its stuck at stopping status. Means service stopping hung and not responding. In this case we need to force kill windows service either by using taskkill in command line (cmd) or by powershell. Follow the step by step commands to apply in cmd for force stop service windows server.
service instance start stop stuck unprovisioning rovisioning in sharepoint 2019