Link to home
Start Free TrialLog in
Avatar of Jerry Thompson
Jerry ThompsonFlag for United States of America

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
Avatar of Hello There
Hello There

Open Services -> double click on the Cloud Print Connector service -> General tab -> there is your service name
Then type "sc queryex <servicename>"

Then run:
taskkill /f /pid [PID], where [PID] is the service number.
Open an administrative PowerShell console, enter the following.
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}

Open in new window

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
Avatar of Jerry Thompson
Jerry Thompson
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial