Start/Stop App Pool IIS6.0 with Powershell or command line

后端 未结 6 1820
眼角桃花
眼角桃花 2021-01-12 17:48

I\'m using IIS 6.0 and looking for a way to stop/start the app pool. I know there is a stop-appPool for powershell in 7.0 but using 6.0. :-( So does anyone have a powersh

6条回答
  •  时光取名叫无心
    2021-01-12 18:40

    If anybody is looking for a purely command-line tool that does not require Powershell, I have created such a thing based on the information contained in these other answers. Since the original question is specifically looking for possible command-line alternatives, I thought I would share it here.

    Usage is quite simple:

    IIS6AppPool Start DefaultAppPool
    IIS6AppPool Stop AppPool #1
    IIS6AppPool Recycle Some other app pool
    

    Source and binaries are available on bitbucket. May this save somebody else a few minutes of head scratching.

提交回复
热议问题