Windows IIS to stop using the batch or website

 
--开启所有程序池

iisreset 服务器ip /start

--停止所有程序池

iisreset 服务器ip /stop
--停止单个程序池

C:\Windows\System32\inetsrv\appcmd.exe stop apppool /apppool.name:程序池名称

--开启单个程序池

C:\Windows\System32\inetsrv\appcmd.exe start apppool /apppool.name:程序池名称
--停止某个网站

c:\Windows\System32\inetsrv\appcmd.exe stop site "网站名称"

--开启某个网站

c:\Windows\System32\inetsrv\appcmd.exe start site "网站名称"

The above script with Notepad save as suffix .bat file, double-click to run, or cmd into the command line can be. 

Guess you like

Origin www.cnblogs.com/chen1999/p/12552281.html