How to get IIS AppPool Worker Process ID

后端 未结 3 1636
情深已故
情深已故 2020-12-13 05:08

I have a PowerShell script that is run automatically when our monitoring service detects that a website is down. It is supposed to stop the AppPool (using Stop-WebAppP

3条回答
  •  失恋的感觉
    2020-12-13 05:45

    In Command Prompt on the server, I just do the following for a list of running AppPool PIDs so I can kill them with taskkill or Task Mgr:

    cd c:\windows\system32\inetsrv
    appcmd list wp
    

    taskkill /f /pid *PIDhere*
    

提交回复
热议问题