Skip to content

Instantly share code, notes, and snippets.

@benerdin
Created February 27, 2014 16:25
Show Gist options
  • Select an option

  • Save benerdin/9253464 to your computer and use it in GitHub Desktop.

Select an option

Save benerdin/9253464 to your computer and use it in GitHub Desktop.
Manually kill a process for a Windows Service that won't stop.
sc queryex wuauserv
SERVICE_NAME: wuauserv
DISPLAY_NAME: Windows Update
TYPE : 20 WIN32_SHARE_PROCESS
STATE : 4 RUNNING
(STOPPABLE, NOT_PAUSABLE, ACCEPTS_PRESHUTDOWN)
WIN32_EXIT_CODE : 0 (0x0)
SERVICE_EXIT_CODE : 0 (0x0)
CHECKPOINT : 0x0
WAIT_HINT : 0x0
PID : 1280
FLAGS :
taskkill /pid 1280 /f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment