A service stuck in a stop pending state is a frustrating experience. The following powershell script will kill any services stuck in a stop pending state, this script could be saved and ran as a recovery action to automate the recovery of a troublesome service.

$ServicePID = (get-wmiobject win32_service | where-object {$_.state -eq 'stop pending'}).ProcessId
taskkill /pid $ServicePID /f