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

后端 未结 6 1836
眼角桃花
眼角桃花 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:49

    If on Windows Server 2003 it is simpler to use the supplied script iisapp.vbs

    CScript.exe C:\WINDOWS\system32\iisapp.vbs /?
    CScript.exe C:\WINDOWS\system32\iisapp.vbs /a MyApp /r
    

    Or depending on your setup (default to Cscript not WScript), simply

    iisapp /a MyApp /r
    

    And of course it is different in IIS7

提交回复
热议问题