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

后端 未结 5 1053
小蘑菇
小蘑菇 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:37

    To stop an App Pool using PowerShell use

    Stop-WebAppPool -Name YourAppPoolNameHere
    

    And to start the App Pool

    Start-WebAppPool -Name YourAppPoolNameHere
    

    You will need the WebAdministration module installed so check you have it with this command

     Get-Module -ListAvailable
    

提交回复
热议问题