Issue description
When I tried to run a service, for example, the ssh-agent
, via PowerShell cmdlet Start-Service
, it showed me as follows:
Picture-1
Unfortunately, there's no more helpful information that could help me figure out what happened there.
Investigation
After searching on google, I supposed that the issue might be caused by an inappropriate or inconsistent working status that the target service had at that moment.
Solution
So, I went to fix this issue by the following steps(of course, by PS):
- Use
Set-Service
to set the service startup type explicitly toManual
orAutomatic
. - Use
Start-Service
to start the service. - Use
Get-Service
to check the running status of the service.