Search This Blog

Tuesday, 21 March 2017

killing Windows services and the IIS w3wp

Find the process PID:

sc queryex <service name>  WARNING - does not work in Powershell as sc is an alias for set-content

Kill the process:

taskkill /F /PID <service PID>



...OR...



Use the taskkill filter syntax for one line:

taskkill /fi "Services eq <service name>" /F




This appears to work on IIS w3wp process that won't stop following an application pool "stop" event, although use this at your own risk, I've done very little testing on this!

No comments:

Post a Comment