How to start and stop application pool in IIS using powershell script

后端 未结 5 1054
小蘑菇
小蘑菇 2021-02-19 19:53

I want to start and stop application pool in IIS using powershell script. I had try to write the script but i didn\'t get this.

5条回答
  •  野的像风
    2021-02-19 20:39

    These days the IISAdminstration module has mostly superceded WebAdministration. So if you're on Windows 10 / Server 2016, you can use Get-IISAppPool:

    (Get-IISAppPool "name").Recycle()
    

提交回复
热议问题