Jerry Thompson
asked on
How to find the PID or kill Googles "Cloud Print Connector" Service
The Google Cloud Print Connector service is stuck "starting." I found the command to kill the service but I need to find the Process ID. I found a command:
sc queryex [servicename]
I type "sc queryex Cloud Print Connector" but it returns a invalid option error.
If I drop the service name, it shows all services BUT the list is too long and it only shows the services from R to Z.
Can anyone tell me how to find the PID or a way to pause the sc queryex to show the a-c services?
Thank you
Jerlo
sc queryex [servicename]
I type "sc queryex Cloud Print Connector" but it returns a invalid option error.
If I drop the service name, it shows all services BUT the list is too long and it only shows the services from R to Z.
Can anyone tell me how to find the PID or a way to pause the sc queryex to show the a-c services?
Thank you
Jerlo
Open an administrative PowerShell console, enter the following.
This in test mode and will not actually kill the process:
This in test mode and will not actually kill the process:
gwmi Win32_Service -Filter "DisplayName LIKE '%Google Cloud Print Connector%'" | % {Stop-Process -Name ([IO.Path]::GetFileNameWithoutExtension($_.PathName)) -Force -WhatIf}
You should see one message like (with "Whatever" being the name of the exe, and the PID behind it):What if: Performing the operation "Stop-Process" on target "Whatever. (1234)".If everything looks okay, just run it again, but without the -WhatIf at the end.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Then type "sc queryex <servicename>"
Then run:
taskkill /f /pid [PID], where [PID] is the service number.